handlers: Introduce HandlerVersion to return the verison string

This commit is contained in:
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);
}