File size: 445 Bytes
7da1d63
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/**
 * @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