rcpp_framework/rdn_application.h

31 lines
664 B
C
Raw Normal View History

2020-11-25 00:20:41 +01:00
#ifndef RDN_APPLICATION_H
#define RDN_APPLICATION_H
2020-11-25 13:28:34 +01:00
#include "core/application.h"
2020-11-25 21:00:22 +01:00
#include "core/theme.h"
#include "core/object.h"
2020-11-25 00:20:41 +01:00
2020-12-01 17:01:59 +01:00
#include "modules/message_page/message_page.h"
2020-11-25 00:20:41 +01:00
class RDNApplication : public Application {
public:
static void index(Object *instance, Request *request);
2020-11-25 00:20:41 +01:00
static void session_middleware_func(Object* instance, Request *request);
2020-11-25 00:20:41 +01:00
2020-12-01 17:01:59 +01:00
static void message_page_func(Object *instance, Request *request);
2020-11-25 00:20:41 +01:00
virtual void setup_routes();
virtual void setup_middleware();
virtual void migrate();
2020-11-25 00:20:41 +01:00
RDNApplication();
~RDNApplication();
2020-11-25 21:00:22 +01:00
std::vector<Theme *> themes;
2020-12-01 17:01:59 +01:00
MessagePage *message_page;
2020-11-25 00:20:41 +01:00
};
#endif