7 #include <Wt/WApplication.h>
8 #include <Wt/WServer.h>
17 auto app = std::make_unique<WApplication>(env);
19 app->setTitle(
"Hangman");
21 app->messageResourceBundle().use(app->appRoot() +
"strings");
22 app->messageResourceBundle().use(app->appRoot() +
"templates");
24 app->useStyleSheet(
"css/hangman.css");
32 int main(
int argc,
char **argv)
35 WServer server(argc, argv, WTHTTP_CONFIGURATION);
42 }
catch (WServer::Exception& e) {
43 std::cerr << e.what() << std::endl;
44 }
catch (std::exception &e) {
45 std::cerr <<
"exception: " << e.what() << std::endl;
static void configureAuth()
WTCONNECTOR_API void run()
WT_API void addEntryPoint(EntryPointType type, ApplicationCreator callback, const std::string &path=std::string(), const std::string &favicon=std::string())
int main(int argc, char **argv)
std::unique_ptr< WApplication > createApplication(const WEnvironment &env)