lintel 0.2.0
Loading...
Searching...
No Matches
HistoryController.h
Go to the documentation of this file.
1#ifndef LINTEL_HISTORYCONTROLLER_H
2#define LINTEL_HISTORYCONTROLLER_H
3
9
10namespace lintel {
13{
14private:
15 std::shared_ptr<HistoryRepository> m_historyRepository;
16 Group m_adminGroup;
17 Group m_userGroup;
18
19 ADD_HANDLER_METHOD(R"(/history/([^\/]+)/([^\/]+)/([^\/]+))", Get, historyOf);
20
21public:
22 explicit HistoryController(const std::shared_ptr<IAuthService> &authService,
23 std::shared_ptr<GroupRepository> groupRepository,
24 std::shared_ptr<HistoryRepository> historyRepository);
25};
26
27}// namespace lintel
28#endif// LINTEL_HISTORYCONTROLLER_H
#define ADD_HANDLER_METHOD(pattern, httpType, name)
Definition Controller.h:25
Definition Controller.h:90
@ Get
Definition Controller.h:121
Definition Group.h:35
Definition HistoryController.h:13
HistoryController(const std::shared_ptr< IAuthService > &authService, std::shared_ptr< GroupRepository > groupRepository, std::shared_ptr< HistoryRepository > historyRepository)
Definition BaseFeature.h:6
constexpr std::string_view type_name()
Definition TypeName.h:9