This commit is contained in:
Sagi Sarussi
2021-08-18 08:02:45 +02:00
committed by GitHub
parent 6c9651c14a
commit cb637f1124
+1 -1
View File
@@ -68,7 +68,7 @@ async fn create_user(
username: payload.username,
};
// this will be converted into an JSON response
// this will be converted into a JSON response
// with a status code of `201 Created`
(StatusCode::CREATED, response::Json(user))
}