9 #include "BlogRSSFeed.h"
10 #include "model/BlogSession.h"
11 #include "model/Token.h"
12 #include "model/User.h"
16 int main(
int argc,
char **argv)
23 BlogSession::configureAuth();
25 BlogRSSFeed rssFeed(server.
appRoot() +
"blog.db",
"Wt and JWt blog",
26 "http://www.webtoolkit.eu/wt/blog",
27 "We care about our webtoolkits.");
32 "/jwt",
"/css/jwt/favicon.ico");
34 "",
"/css/wt/favicon.ico");
37 WServer::waitForShutdown();
41 std::cerr << e.
what() << std::endl;
42 }
catch (std::exception &e) {
43 std::cerr <<
"exception: " << e.what() << std::endl;
virtual const char * what() const
WTCONNECTOR_API void stop()
WT_API void addResource(WResource *resource, const std::string &path)
WT_API std::string appRoot() const
WTCONNECTOR_API void setServerConfiguration(int argc, char *argv[], const std::string &serverConfigurationFile=std::string())
WT_API void addEntryPoint(EntryPointType type, ApplicationCreator callback, const std::string &path=std::string(), const std::string &favicon=std::string())
WTCONNECTOR_API bool start()
WApplication * createWtHomeApplication(const WEnvironment &env)
int main(int argc, char **argv)
WApplication * createJWtHomeApplication(const WEnvironment &env)