#include <Wt/WServer.h>
#include <Wt/Dbo/SqlConnectionPool.h>
#include "BlogRSSFeed.h"
#include "model/BlogSession.h"
#include "model/Token.h"
#include "model/User.h"
#include "WtHome.h"
#include "JWtHome.h"
Go to the source code of this file.
|
int | main (int argc, char **argv) |
|
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 19 of file main.C.
22 WServer server(argc, argv, WTHTTP_CONFIGURATION);
24 BlogSession::configureAuth();
26 std::unique_ptr<Dbo::SqlConnectionPool> blogDb
27 = BlogSession::createConnectionPool(server.appRoot() +
"blog.db");
29 BlogRSSFeed rssFeed(*blogDb,
"Wt and JWt blog",
30 "http://www.webtoolkit.eu/wt/blog",
31 "We care about our webtoolkits.");
33 server.addResource(&rssFeed,
"/wt/blog/feed/");
35 server.addEntryPoint(EntryPointType::Application,
37 "/jwt",
"/css/jwt/favicon.ico");
38 server.addEntryPoint(EntryPointType::Application,
40 "",
"/css/wt/favicon.ico");
45 std::cerr << e.
what() << std::endl;
46 }
catch (std::exception &e) {
47 std::cerr <<
"exception: " << e.what() << std::endl;
virtual const char * what() const override
std::unique_ptr< WApplication > createJWtHomeApplication(const WEnvironment &env, Dbo::SqlConnectionPool *blogDb)
std::unique_ptr< WApplication > createWtHomeApplication(const WEnvironment &env, Dbo::SqlConnectionPool *blogDb)