ai-dev-template / cpp /include /api /routes.hpp
Jordandevlog's picture
Upload cpp/include/api/routes.hpp
7da1d63 verified
Raw
History Blame Contribute Delete
445 Bytes
/**
* @file routes.hpp
* @brief HTTP route definitions.
*/
#pragma once
#include <string>
#include <expected>
namespace app::api {
/**
* @brief Simple HTTP response structure.
*/
struct HttpResponse {
int status_code{200};
std::string body;
std::string content_type{"application/json"};
};
/**
* @brief Health check endpoint.
* @return HTTP 200 with status JSON.
*/
HttpResponse health_check();
} // namespace app::api