* @brief Check if a request path is exempt from authentication. * * Health and info endpoints are always accessible without auth. */
| 103 | * Health and info endpoints are always accessible without auth. |
| 104 | */ |
| 105 | bool IsAuthExemptPath(const std::string& path) |
| 106 | { |
| 107 | return path == "/api/v1/health" || |
| 108 | path == "/api/v1/info" || |
| 109 | path == "/api/v1/docs" || |
| 110 | path == "/api/v1/docs/" || |
| 111 | path == "/api/v1/docs/swagger-ui.css" || |
| 112 | path == "/api/v1/docs/swagger-ui-bundle.js" || |
| 113 | path == "/api/v1/openapi.json"; |
| 114 | } |
| 115 | |
| 116 | /** |
| 117 | * @brief Check if a request path is exempt from rate limiting. |