Start moving to Rocket 0.5.0

This commit is contained in:
Paul
2021-08-03 14:40:07 +01:00
committed by Paul Makles
parent 33262cc703
commit 9fec4e48c0
62 changed files with 821 additions and 421 deletions

View File

@@ -1,6 +1,6 @@
pub use rocket::http::Status;
pub use rocket::response::Redirect;
use rocket::Rocket;
pub use rocket::http::Status;
use rocket::{Phase, Rocket};
mod channels;
mod invites;
@@ -11,7 +11,7 @@ mod servers;
mod sync;
mod users;
pub fn mount(rocket: Rocket) -> Rocket {
pub fn mount<T: Phase>(rocket: Rocket<T>) -> Rocket<T> {
rocket
.mount("/", routes![root::root])
.mount("/onboard", onboard::routes())