summaryrefslogtreecommitdiff
path: root/src/repository
diff options
context:
space:
mode:
authorSanto Cariotti <santo@dcariotti.me>2021-03-17 14:16:22 +0100
committerGitHub <noreply@github.com>2021-03-17 14:16:22 +0100
commit5691c3e7c44b833b4d81c0080ad8179192259652 (patch)
tree9749fbf7ff0b9c887df5439aef793bc31c7f202e /src/repository
parent896ab2a9fb4a34d82c70792a1114ac1a0f4ad6c0 (diff)
parent904c7e40a2d092eea87ca6d9ea80edce8a2aad2a (diff)
Merge pull request #14 from gico-net/feat/add-commits
Add "Commit"'s endpoints
Diffstat (limited to 'src/repository')
-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)
}