Older/WebApplication/BlogApplication.cpp
luocai 27ffee57be
Some checks failed
Deploy / PullDocker (push) Successful in 4s
Deploy / Build (push) Failing after 1m34s
Deploy Docker Images / Docusaurus build and Server deploy (push) Successful in 14s
add blog code.
2024-11-01 19:05:20 +08:00

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");
}