/
Shymer123
/
LumenServer
Обзор
Документация
Войти
/
Shymer123
/
LumenServer
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
Server/SourceFiles/Controllers/ContactController.h
25 строк
682 B
Shymer123
Initial commit: LumenServer
20 июн 2026, 12:43
20 июн 2026, 12:43
173f14c
Код
Авторство
О чём код?
#ifndef CONTACTCONTROLLER_H #define CONTACTCONTROLLER_H #include <nlohmann/json.hpp> #include "Services/ContactService.h" #include "Core/Network/RequestContext.h" namespace Controllers { class ContactController { public: explicit ContactController(Services::ContactService& contactService); nlohmann::json getContacts(const Core::Network::RequestContext& req); nlohmann::json addContact(const Core::Network::RequestContext& req); nlohmann::json removeContact(const Core::Network::RequestContext& req); private: Services::ContactService& m_contactService; }; } // namespace Controllers #endif // CONTACTCONTROLLER_H