Added the skeleton of 2 more static pages.

This commit is contained in:
Relintai 2022-02-06 12:50:28 +01:00
parent ea8de24dc8
commit c4f0bd9538
4 changed files with 76 additions and 0 deletions

View 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() {
}

View 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

View 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() {
}

View 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