diff --git a/app/mourne_root.cpp b/app/mourne_root.cpp index b9ab561..72af9db 100644 --- a/app/mourne_root.cpp +++ b/app/mourne_root.cpp @@ -247,33 +247,6 @@ void MourneRoot::add_menu(Request *request, const MenuEntries index) { request->footer = footer; } -void MourneRoot::village_page_func(Request *request) { - add_menu(request, MENUENTRY_VILLAGE); - - // dynamic_cast(instance)->index(request); - request->body += "test"; - request->compile_and_send_body(); -} - -void MourneRoot::user_page_func(Request *request) { - if (is_logged_in(request)) { - add_menu(request, MENUENTRY_SETTINGS); - } - - UserController::get_singleton()->handle_request_main(request); -} - -void MourneRoot::admin_page_func(Request *request) { - AdminPanel::get_singleton()->handle_request_main(request); -} - -void MourneRoot::setup_routes() { - // index_func = HandlerInstance(index); - // main_route_map["village"] = HandlerInstance(village_page_func); - // main_route_map["user"] = HandlerInstance(user_page_func); - // main_route_map["admin"] = HandlerInstance(admin_page_func); -} - void MourneRoot::setup_middleware() { _middlewares.push_back(Ref(new SessionSetupMiddleware())); _middlewares.push_back(Ref(new UserSessionSetupMiddleware())); diff --git a/app/mourne_root.h b/app/mourne_root.h index 4454a60..a04aaa0 100644 --- a/app/mourne_root.h +++ b/app/mourne_root.h @@ -52,11 +52,7 @@ public: void add_menu(Request *request, const MenuEntries index); void index(Request *request); - void village_page_func(Request *request); - void user_page_func(Request *request); - void admin_page_func(Request *request); - virtual void setup_routes(); virtual void setup_middleware(); virtual void migrate();