From eda7ce792c9875a437314924f90d66a37d81a1bb Mon Sep 17 00:00:00 2001 From: Santo Cariotti Date: Wed, 17 Mar 2021 09:14:58 +0100 Subject: fix: response status for repo creation --- src/repository/routes.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/repository/routes.rs b/src/repository/routes.rs index abf77b6..32443b1 100644 --- a/src/repository/routes.rs +++ b/src/repository/routes.rs @@ -93,7 +93,7 @@ async fn create_repo( .await; result - .map(|repo| HttpResponse::Ok().json(repo)) + .map(|repo| HttpResponse::Created().json(repo)) .map_err(|e| e) } -- cgit v1.2.3-18-g5258