diff options
author | Santo Cariotti <santo@dcariotti.me> | 2021-03-17 09:14:58 +0100 |
---|---|---|
committer | Santo Cariotti <santo@dcariotti.me> | 2021-03-17 09:14:58 +0100 |
commit | eda7ce792c9875a437314924f90d66a37d81a1bb (patch) | |
tree | c6ac3d843e7941a05da8af888604151b5db47dc0 /src/repository | |
parent | 896ab2a9fb4a34d82c70792a1114ac1a0f4ad6c0 (diff) |
fix: response status for repo creation
Diffstat (limited to 'src/repository')
-rw-r--r-- | src/repository/routes.rs | 2 |
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) } |