mirror of
https://github.com/Relintai/rcpp_sample_simple_data_collector_app.git
synced 2025-05-11 07:22:09 +02:00
Updated the engine.
This commit is contained in:
parent
aac16d3715
commit
9bfec2590e
2
HEADS
2
HEADS
@ -1 +1 @@
|
||||
{"engine": {"master": "3931dba9881119766946213b175cbc90e25b2e90"}}
|
||||
{"engine": {"master": "0c0123889b067043a46bc3bafedb36dd17d05714"}}
|
@ -69,7 +69,7 @@ void ICApplication::engine_docs_page(Object *instance, Request *request) {
|
||||
}
|
||||
|
||||
void ICApplication::setup_routes() {
|
||||
Application::setup_routes();
|
||||
BryWebApplication::setup_routes();
|
||||
|
||||
index_func = HandlerInstance(index);
|
||||
|
||||
@ -79,7 +79,7 @@ void ICApplication::setup_routes() {
|
||||
}
|
||||
|
||||
void ICApplication::setup_middleware() {
|
||||
Application::setup_middleware();
|
||||
BryWebApplication::setup_middleware();
|
||||
|
||||
//middlewares.push_back(ICApplication::session_middleware_func);
|
||||
}
|
||||
@ -138,7 +138,7 @@ void ICApplication::load_md(const std::string &file_name, std::string *str) {
|
||||
}
|
||||
|
||||
ICApplication::ICApplication() :
|
||||
Application() {
|
||||
BryWebApplication() {
|
||||
|
||||
load_md("./engine/Readme.md", &engine_docs);
|
||||
load_md("./Readme.md", &app_docs);
|
||||
|
@ -3,14 +3,14 @@
|
||||
|
||||
#include <vector>
|
||||
|
||||
#include "core/application.h"
|
||||
#include "core/bry_web_application.h"
|
||||
#include "core/object.h"
|
||||
|
||||
#include "modules/message_page/message_page.h"
|
||||
#include "modules/list_page/list_page.h"
|
||||
#include "modules/paged_article/paged_article.h"
|
||||
|
||||
class ICApplication : public Application {
|
||||
class ICApplication : public BryWebApplication {
|
||||
public:
|
||||
static void index(Object *instance, Request *request);
|
||||
static void get_sensor_data(Object *instance, Request *request);
|
||||
|
4
main.cpp
4
main.cpp
@ -2,7 +2,7 @@
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
|
||||
#include "core/application.h"
|
||||
#include "core/bry_web_application.h"
|
||||
#include "core/file_cache.h"
|
||||
#include "core/http/http_server.h"
|
||||
|
||||
@ -72,7 +72,7 @@ int main(int argc, char **argv) {
|
||||
|
||||
create_databases();
|
||||
|
||||
Application *app = new MAIN_CLASS();
|
||||
BryWebApplication *app = new MAIN_CLASS();
|
||||
|
||||
app->load_settings();
|
||||
app->setup_routes();
|
||||
|
Loading…
Reference in New Issue
Block a user