summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSanto Cariotti <santo@dcariotti.me>2021-03-17 09:14:58 +0100
committerSanto Cariotti <santo@dcariotti.me>2021-03-17 09:14:58 +0100
commiteda7ce792c9875a437314924f90d66a37d81a1bb (patch)
treec6ac3d843e7941a05da8af888604151b5db47dc0
parent896ab2a9fb4a34d82c70792a1114ac1a0f4ad6c0 (diff)
fix: response status for repo creation
-rw-r--r--src/repository/routes.rs2
1 files changed, 1 insertions, 1 deletions
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)
}