#include <Wt/WServer>
#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 16 of file main.C.
21 server.setServerConfiguration(argc, argv, WTHTTP_CONFIGURATION);
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.");
29 server.addResource(&rssFeed,
"/wt/blog/feed/");
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;