/
Shymer123
/
LumenServer
Обзор
Документация
Войти
/
Shymer123
/
LumenServer
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
Server/SourceFiles/Controllers/FileController.h
29 строк
929 B
Shymer123
Initial commit: LumenServer
20 июн 2026, 12:43
20 июн 2026, 12:43
173f14c
Код
Авторство
О чём код?
#ifndef FILECONTROLLER_H #define FILECONTROLLER_H #include "Services/FileService.h" #include "Core/Network/RequestContext.h" #include <nlohmann/json.hpp> namespace Controllers { class FileController { public: explicit FileController(Services::FileService& fileService); nlohmann::json startUpload(const Core::Network::RequestContext& ctx); nlohmann::json uploadChunk(const Core::Network::RequestContext& ctx); nlohmann::json completeUpload(const Core::Network::RequestContext& ctx); nlohmann::json cancelUpload(const Core::Network::RequestContext& ctx); nlohmann::json startDownload(const Core::Network::RequestContext& ctx); std::pair<nlohmann::json, std::vector<std::byte>> downloadChunk(const Core::Network::RequestContext& ctx); private: Services::FileService& m_fileService; }; } // namespace Controllers #endif // FILECONTROLLER_H