HandlerFactory: Wire up HandlerFeedGenerator
This commit is contained in:
parent
bcc3737d88
commit
c30e09d44d
@ -34,6 +34,7 @@ SOFTWARE.
|
|||||||
#include "handlerpagedelete.h"
|
#include "handlerpagedelete.h"
|
||||||
#include "handlerusersettings.h"
|
#include "handlerusersettings.h"
|
||||||
#include "handlerversion.h"
|
#include "handlerversion.h"
|
||||||
|
#include "handlerfeedgenerator.h"
|
||||||
std::unique_ptr<Handler> HandlerFactory::createHandler(const std::string &action, Session &userSession)
|
std::unique_ptr<Handler> HandlerFactory::createHandler(const std::string &action, Session &userSession)
|
||||||
{
|
{
|
||||||
if(action == "" || action == "index")
|
if(action == "" || action == "index")
|
||||||
@ -84,6 +85,10 @@ std::unique_ptr<Handler> HandlerFactory::createHandler(const std::string &action
|
|||||||
{
|
{
|
||||||
return produce<HandlerVersion>(userSession);
|
return produce<HandlerVersion>(userSession);
|
||||||
}
|
}
|
||||||
|
if(action == "feed")
|
||||||
|
{
|
||||||
|
return produce<HandlerFeedGenerator>(userSession);
|
||||||
|
}
|
||||||
|
|
||||||
return produce<HandlerInvalidAction>(userSession);
|
return produce<HandlerInvalidAction>(userSession);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user