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

@@ -9,3 +9,12 @@ pub fn root() -> Response {
"revolt": "0.2.0"
}))
}
/// I'm a teapot.
#[delete("/")]
pub fn teapot() -> Response {
Response::Teapot(json!({
"teapot": true,
"can_delete": false
}))
}