mirror of
https://github.com/Relintai/rcpp_framework.git
synced 2024-11-14 04:57:21 +01:00
Added the skeleton of 2 more static pages.
This commit is contained in:
parent
ea8de24dc8
commit
c4f0bd9538
18
web_modules/static_pages/static_page_file.cpp
Normal file
18
web_modules/static_pages/static_page_file.cpp
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
#include "static_page_file.h"
|
||||||
|
|
||||||
|
#include "web/http/request.h"
|
||||||
|
#include "web/file_cache.h"
|
||||||
|
#include "web/html/html_builder.h"
|
||||||
|
|
||||||
|
void StaticPageFile::handle_request_main(Request *request) {
|
||||||
|
}
|
||||||
|
|
||||||
|
void StaticPageFile::load() {
|
||||||
|
}
|
||||||
|
|
||||||
|
StaticPageFile::StaticPageFile() :
|
||||||
|
WebNode() {
|
||||||
|
}
|
||||||
|
|
||||||
|
StaticPageFile::~StaticPageFile() {
|
||||||
|
}
|
20
web_modules/static_pages/static_page_file.h
Normal file
20
web_modules/static_pages/static_page_file.h
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
#ifndef STATIC_PAGE_FILE_H
|
||||||
|
#define STATIC_PAGE_FILE_H
|
||||||
|
|
||||||
|
#include "core/string.h"
|
||||||
|
|
||||||
|
#include "web/http/web_node.h"
|
||||||
|
|
||||||
|
class StaticPageFile : public WebNode {
|
||||||
|
RCPP_OBJECT(StaticPageFile, WebNode);
|
||||||
|
|
||||||
|
public:
|
||||||
|
void handle_request_main(Request *request);
|
||||||
|
|
||||||
|
void load();
|
||||||
|
|
||||||
|
StaticPageFile();
|
||||||
|
~StaticPageFile();
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif
|
18
web_modules/static_pages/static_page_folder_files.cpp
Normal file
18
web_modules/static_pages/static_page_folder_files.cpp
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
#include "static_page_folder_files.h"
|
||||||
|
|
||||||
|
#include "web/http/request.h"
|
||||||
|
#include "web/file_cache.h"
|
||||||
|
#include "web/html/html_builder.h"
|
||||||
|
|
||||||
|
void StaticPageFolderFiles::handle_request_main(Request *request) {
|
||||||
|
}
|
||||||
|
|
||||||
|
void StaticPageFolderFiles::load() {
|
||||||
|
}
|
||||||
|
|
||||||
|
StaticPageFolderFiles::StaticPageFolderFiles() :
|
||||||
|
WebNode() {
|
||||||
|
}
|
||||||
|
|
||||||
|
StaticPageFolderFiles::~StaticPageFolderFiles() {
|
||||||
|
}
|
20
web_modules/static_pages/static_page_folder_files.h
Normal file
20
web_modules/static_pages/static_page_folder_files.h
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
#ifndef STATIC_PAGE_FOLDER_FILES_H
|
||||||
|
#define STATIC_PAGE_FOLDER_FILES_H
|
||||||
|
|
||||||
|
#include "core/string.h"
|
||||||
|
|
||||||
|
#include "web/http/web_node.h"
|
||||||
|
|
||||||
|
class StaticPageFolderFiles : public WebNode {
|
||||||
|
RCPP_OBJECT(StaticPageFolderFiles, WebNode);
|
||||||
|
|
||||||
|
public:
|
||||||
|
void handle_request_main(Request *request);
|
||||||
|
|
||||||
|
void load();
|
||||||
|
|
||||||
|
StaticPageFolderFiles();
|
||||||
|
~StaticPageFolderFiles();
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif
|
Loading…
Reference in New Issue
Block a user