Reorganize routes

Order them alphabetically
This commit is contained in:
Bat 2018-05-13 18:41:49 +01:00
parent dfab0290e4
commit a7342f49a0
1 changed files with 23 additions and 23 deletions

View File

@ -59,18 +59,36 @@ fn init_pool() -> PgPool {
fn main() {
rocket::ignite()
.mount("/", routes![
routes::static_files,
routes::blogs::details,
routes::blogs::activity_details,
routes::blogs::outbox,
routes::blogs::new,
routes::blogs::create,
routes::well_known::host_meta,
routes::well_known::webfinger,
routes::comments::new,
routes::comments::create,
routes::instance::index,
routes::instance::configure,
routes::instance::post_config,
routes::instance::shared_inbox,
routes::likes::create,
routes::notifications::notifications,
routes::posts::details,
routes::posts::activity_details,
routes::posts::new,
routes::posts::new_auth,
routes::posts::create,
routes::session::new,
routes::session::create,
routes::session::delete,
routes::static_files,
routes::user::me,
routes::user::details,
routes::user::followers,
@ -84,26 +102,8 @@ fn main() {
routes::user::new,
routes::user::create,
routes::session::new,
routes::session::create,
routes::session::delete,
routes::blogs::details,
routes::blogs::activity_details,
routes::blogs::outbox,
routes::blogs::new,
routes::blogs::create,
routes::posts::details,
routes::posts::activity_details,
routes::posts::new,
routes::posts::new_auth,
routes::posts::create,
routes::comments::new,
routes::comments::create,
routes::likes::create
routes::well_known::host_meta,
routes::well_known::webfinger
])
.manage(init_pool())
.attach(Template::fairing())