Reorganize routes

Order them alphabetically
This commit is contained in:
Bat 2018-05-13 18:41:49 +01:00
parent dfab0290e4
commit a7342f49a0

View File

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