Rust: update status code
This commit is contained in:
parent
bee67445a5
commit
54554f8c50
@ -60,7 +60,7 @@ async fn get_token(payload: Option<Json<Value>>) -> (StatusCode, Json<String>) {
|
||||
room_name, participant_name
|
||||
);
|
||||
|
||||
return (StatusCode::CREATED, Json(token));
|
||||
return (StatusCode::OK, Json(token));
|
||||
} else {
|
||||
return (
|
||||
StatusCode::BAD_REQUEST,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user