This commit is contained in:
Paul Makles
2020-06-21 20:20:46 +01:00
parent 188fe30dbf
commit fc03dd2cdb
2 changed files with 17 additions and 1 deletions

View File

@@ -35,6 +35,8 @@ pub enum Response {
Conflict(JsonValue),
#[response(status = 410)]
Gone(JsonValue),
#[response(status = 418)]
Teapot(JsonValue),
#[response(status = 422)]
UnprocessableEntity(JsonValue),
#[response(status = 429)]
@@ -61,7 +63,12 @@ impl<'a> rocket::response::Responder<'a> for Permission {
pub fn mount(rocket: Rocket) -> Rocket {
rocket
.mount("/", routes![root::root])
.mount("/",
routes![
root::root,
root::teapot
]
)
.mount(
"/account",
routes![