#include "mourne_application.h" #include "core/http/request.h" #include #include "core/file_cache.h" #include "core/http/handler_instance.h" #include "core/database/database_manager.h" #include "core/html/html_builder.h" #include "core/http/http_session.h" #include "core/http/session_manager.h" #include "modules/users/user.h" #include "modules/users/user_controller.h" void MourneApplication::index(Object *instance, Request *request) { add_menu(request, MENUENTRY_NEWS); /* 2): ?> */ //dynamic_cast(instance)->index(request); request->body += "test"; request->compile_and_send_body(); } void MourneApplication::session_middleware_func(Object *instance, Request *request) { std::cout << "test: session_middleware_func called" << std::endl; //if fail //request->send(); in middleware request->next_stage(); } void MourneApplication::add_menu(Request *request, const MenuEntries index) { request->head += menu_head; HTMLBuilder b; HTMLTag *t; /*