This commit is contained in:
Sagi Sarussi 2021-08-18 09:02:45 +03:00 committed by GitHub
parent 6c9651c14a
commit cb637f1124
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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))
}