Reorganize routes
Order them alphabetically
This commit is contained in:
parent
dfab0290e4
commit
a7342f49a0
46
src/main.rs
46
src/main.rs
@ -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())
|
||||||
|
Loading…
Reference in New Issue
Block a user