lintel
0.2.0
Loading...
Searching...
No Matches
src
include
lintel
features
http
controllers
HistoryController.h
Go to the documentation of this file.
1
#ifndef LINTEL_HISTORYCONTROLLER_H
2
#define LINTEL_HISTORYCONTROLLER_H
3
4
#include "
lintel/features/base/repositories/GroupRepository.h
"
5
#include "
lintel/features/base/repositories/HistoryRepository.h
"
6
#include "
lintel/features/base/services/IAuthService.h
"
7
#include "
lintel/features/http/service/ContentType.h
"
8
#include "
lintel/features/http/service/Controller.h
"
9
10
namespace
lintel
{
12
class
HistoryController
:
public
Controller
13
{
14
private
:
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
21
public
:
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
ContentType.h
Controller.h
ADD_HANDLER_METHOD
#define ADD_HANDLER_METHOD(pattern, httpType, name)
Definition
Controller.h:25
GroupRepository.h
HistoryRepository.h
IAuthService.h
lintel::Controller
Definition
Controller.h:90
lintel::Controller::Get
@ Get
Definition
Controller.h:121
lintel::Group
Definition
Group.h:35
lintel::HistoryController
Definition
HistoryController.h:13
lintel::HistoryController::HistoryController
HistoryController(const std::shared_ptr< IAuthService > &authService, std::shared_ptr< GroupRepository > groupRepository, std::shared_ptr< HistoryRepository > historyRepository)
lintel
Definition
BaseFeature.h:6
lintel::type_name
constexpr std::string_view type_name()
Definition
TypeName.h:9
Generated by
1.9.8