forked from jmug/stoatchat
Run cargo fmt, add root preflight.
This commit is contained in:
@@ -10,6 +10,11 @@ pub fn root() -> Response {
|
||||
}))
|
||||
}
|
||||
|
||||
#[options("/")]
|
||||
pub fn root_preflight() -> Response {
|
||||
Response::Result(super::Status::Ok)
|
||||
}
|
||||
|
||||
/// I'm a teapot.
|
||||
#[delete("/")]
|
||||
pub fn teapot() -> Response {
|
||||
|
||||
Reference in New Issue
Block a user