Unverified Commit 29e56ee9 authored by Sebastian Schüpbach's avatar Sebastian Schüpbach
Browse files

add health endpoint

parent 43a27f47
......@@ -4,6 +4,8 @@ A small service which provides access to media files hosted on the Memobase sFTP
At the moment the following endpoints are supported:
* `/health`: Simply returns a 200 response. Use it as a very lightweight means
to check if the service is still running.
* `/media/<record-id>`: Fetch a media file with the respective id. The id consists of the recordSetId (a three-letter code and a three-digit sequential number) as well as the proper id of the record. E.g. `baz-001-MEI_67473`.
* `/thumbnail/<record-id>`: The same for thumbnails (media files in the `thumbnails` directory)
* `/refresh`: Refresh the file cache. This happens also automatically after a predefined duration (see below).
......@@ -142,6 +142,9 @@ impl Service<Request<Body>> for Svc {
"health" => {
"media" => {
let path = req
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment