1
0
Fork 0
mirror of https://github.com/tokio-rs/axum.git synced 2025-04-26 13:56:22 +02:00
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

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