This commit is contained in:
@ -51,6 +51,13 @@ Application::Application() : m_d{new ApplicationPrivate()} {
|
||||
m_database->open(m_settings->sqlitePath());
|
||||
m_sessionStore = Singleton<SessionStore>::construct(*m_ioContext->ioContext());
|
||||
|
||||
// clang-format off
|
||||
m_messageManager->subscribe<RegisterUrlHandler>([this](std::string_view url, RequestHandler handler) {
|
||||
LOG(info)<<"register url: "<<url;
|
||||
m_d->router->insert(url, handler);
|
||||
});
|
||||
// clang-format on
|
||||
|
||||
m_corporationContext = Singleton<WeChat::Corporation::Context>::construct(*m_ioContext->ioContext());
|
||||
m_corporationContext->start();
|
||||
|
||||
|
Reference in New Issue
Block a user