app_helpers.hpp
File Header Information
| Field | Value |
|---|---|
| SPDX Comment | Application Helpers Header |
| SPDX Type | SOURCE |
| Contributor | ZHENG Robert |
| License ID | MIT |
| File | app_helpers.hpp |
| Description | Application Helpers Header |
| Version | 0.15.0 |
| Date | 2026-01-24 |
| Author | ZHENG Robert (robert@hase-zheng.net) |
| Copyright | Copyright (c) 2026 ZHENG Robert |
| License | MIT |
Table of Contents
API Documentation
namespace rz::utils
rz namespace.
inline void ensureDirectoryExists(const std::string& path)
Ensures that a directory exists, creates it if necessary.
namespace fs = std::filesystem
fs namespace.
inline crow::json::wvalue makeErrorJson(int code, const std::string& message)
Creates a standardized JSON error response object.