Add ping endpoint

This commit is contained in:
Andras Schmelczer 2024-12-10 21:36:32 +00:00
parent 66fbdbf368
commit a67bac63b6
No known key found for this signature in database
GPG key ID: FC8F2C3D3D1A718C
3 changed files with 18 additions and 0 deletions

View file

@ -22,6 +22,7 @@ mod create_document;
mod delete_document;
mod fetch_latest_document_version;
mod fetch_latest_documents;
mod ping;
mod requests;
mod update_document;
@ -40,6 +41,7 @@ pub async fn create_server(app_state: AppState) -> Result<()> {
};
let app = ApiRouter::new()
.api_route("/ping", get(ping::ping))
.api_route(
"/vaults/:vault_id/documents",
get(fetch_latest_documents::fetch_latest_documents),