blob: 94cb63b009e84ba84f99a10ea90a623dd9c7be27 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#ifndef STATIC_H
#define STATIC_H 1
#include "../../Content.hpp"
#include "../../Filesystem.hpp"
class Static : public Content
{
public:
explicit Static(std::string uriBasePath, std::shared_ptr<Filesystem> const & fs);
bool Init() override;
void Shutdown() override;
bool Render(RequestResponse & rr, RenderData & rd, std::string & out) override;
std::string & GetUriBasePath() override;
std::string const & GetMainTemplate() const override;
Redirections & GetRedirections() override;
private:
std::string m_UriBasePath;
std::string m_MainTemplatePath;
Redirections m_Redirections;
std::shared_ptr<Filesystem> const m_StaticFiles;
};
#endif
|