Let's make (git) history!
This commit is contained in:
26
handlers/handlerpageview.h
Normal file
26
handlers/handlerpageview.h
Normal file
@@ -0,0 +1,26 @@
|
||||
#ifndef HANDLERPAGEVIEW_H
|
||||
#define HANDLERPAGEVIEW_H
|
||||
|
||||
#include "handler.h"
|
||||
#include "handlerpage.h"
|
||||
#include "../page.h"
|
||||
#include "../iparser.h"
|
||||
class HandlerPageView : public HandlerPage
|
||||
{
|
||||
protected:
|
||||
bool canAccess(std::string page) override;
|
||||
std::string accessErrorMessage() override
|
||||
{
|
||||
return "You don't have permission to view this page";
|
||||
}
|
||||
std::string createIndexContent(IParser &parser, std::string content);
|
||||
|
||||
public:
|
||||
Response handleRequest(PageDao &pageDao, std::string pagename, const Request &r) override;
|
||||
~HandlerPageView() override
|
||||
{
|
||||
}
|
||||
using HandlerPage::HandlerPage;
|
||||
};
|
||||
|
||||
#endif // HANDLERPAGEVIEW_H
|
Verwijs in nieuw issue
Block a user