Adds the post gamenight handler.

This commit is contained in:
2023-03-25 22:44:58 +01:00
parent 534e6867d8
commit 5216f55a14
6 changed files with 50 additions and 5 deletions

View File

@@ -72,3 +72,12 @@ impl From<ValidationErrors> for ApiError {
}
}
}
impl From<chrono::ParseError> for ApiError {
fn from(value: chrono::ParseError) -> Self {
ApiError {
status: 422,
message: value.to_string()
}
}
}