handlers: Introduce HandlerVersion to return the verison string

这个提交包含在:
2021-10-10 22:39:35 +02:00
父节点 c9dc3416d7
当前提交 7a2f15cabe
共有 3 个文件被更改,包括 32 次插入1 次删除

查看文件

@@ -33,7 +33,7 @@ SOFTWARE.
#include "handlerhistory.h"
#include "handlerpagedelete.h"
#include "handlerusersettings.h"
#include "handlerversion.h"
std::unique_ptr<Handler> HandlerFactory::createHandler(const std::string &action, Session &userSession)
{
if(action == "" || action == "index")
@@ -80,6 +80,10 @@ std::unique_ptr<Handler> HandlerFactory::createHandler(const std::string &action
{
return produce<HandlerUserSettings>(userSession);
}
if(action == "version")
{
return produce<HandlerVersion>(userSession);
}
return produce<HandlerInvalidAction>(userSession);
}