Migrate the rest of the code.

This commit is contained in:
Paul
2021-08-04 10:11:21 +01:00
committed by Paul Makles
parent 9fec4e48c0
commit 382972ea22
12 changed files with 49 additions and 216 deletions

View File

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