12 lines
380 B
C++
12 lines
380 B
C++
|
#include "BlogApplication.h"
|
||
|
#include "view/BlogView.h"
|
||
|
#include <Wt/WContainerWidget.h>
|
||
|
|
||
|
static const char *FeedUrl = "/blog/feed/";
|
||
|
|
||
|
BlogApplication::BlogApplication(const Wt::WEnvironment &env, Wt::Dbo::SqlConnectionPool &blogDb)
|
||
|
: Wt::WApplication(env) {
|
||
|
root()->addWidget(std::make_unique<BlogView>("/", blogDb, FeedUrl));
|
||
|
useStyleSheet("css/blogexample.css");
|
||
|
}
|