13 #ifndef mitkHealthController_h
14 #define mitkHealthController_h
114 mutable std::mutex m_Mutex;
117 std::vector<std::string> m_AllowedFileDirectories;
118 size_t m_MaxActiveTempDirsPerIp = 5;
#define MITKRESTAPI_EXPORT
Thread-safe bridge between the REST API layer and MITK DataStorage.
Handles health and info endpoints.
std::function< std::optional< int64_t >()> UptimeCallback
Callback type for retrieving server uptime.
void HandleGET_config_file_access(const httplib::Request &req, httplib::Response &res)
Handle GET /config/file-access request.
void HandleGET_health(const httplib::Request &req, httplib::Response &res)
Handle GET /health request.
void SetUptimeCallback(UptimeCallback callback)
Set the callback for retrieving server uptime.
HealthController(DataStorageBridge &bridge)
Construct a HealthController.
void HandleGET_info(const httplib::Request &req, httplib::Response &res)
Handle GET /info request.
void SetFileAccessConfig(FileAccessMode mode, const std::vector< std::string > &allowedDirs)
Set the file access configuration.
void SetMaxActiveTempDirsPerIp(size_t max)
Set the per-IP limit for concurrent file-reference temp directories. Reported by GET /config/file-acc...
Find image slices visible on a given plane.
FileAccessMode
Access mode for file system path restrictions.
@ Unrestricted
No file path restrictions (default).