mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-04 12:27:13 +02:00
Merge #90
90: restore version route r=MarinPostma a=MarinPostma close #74 Co-authored-by: mpostma <postma.marin@protonmail.com>
This commit is contained in:
commit
c6dbd81823
6 changed files with 24 additions and 3 deletions
|
@ -56,5 +56,9 @@ struct VersionResponse {
|
|||
|
||||
#[get("/version", wrap = "Authentication::Private")]
|
||||
async fn get_version() -> HttpResponse {
|
||||
todo!()
|
||||
HttpResponse::Ok().json(VersionResponse {
|
||||
commit_sha: env!("VERGEN_SHA").to_string(),
|
||||
build_date: env!("VERGEN_BUILD_TIMESTAMP").to_string(),
|
||||
pkg_version: env!("CARGO_PKG_VERSION").to_string(),
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue