1
0
Derivar 0

HandlerFactory: Wire up HandlerFeedGenerator

Este cometimento está contido em:
Albert S. 2022-03-27 19:52:45 +02:00
ascendente bcc3737d88
cometimento c30e09d44d
1 ficheiros modificados com 5 adições e 0 eliminações

Ver ficheiro

@ -34,6 +34,7 @@ SOFTWARE.
#include "handlerpagedelete.h"
#include "handlerusersettings.h"
#include "handlerversion.h"
#include "handlerfeedgenerator.h"
std::unique_ptr<Handler> HandlerFactory::createHandler(const std::string &action, Session &userSession)
{
if(action == "" || action == "index")
@ -84,6 +85,10 @@ std::unique_ptr<Handler> HandlerFactory::createHandler(const std::string &action
{
return produce<HandlerVersion>(userSession);
}
if(action == "feed")
{
return produce<HandlerFeedGenerator>(userSession);
}
return produce<HandlerInvalidAction>(userSession);
}