From 0a027b68e0322364a1501baff447bb21c4bfdc75 Mon Sep 17 00:00:00 2001 From: Paul Makles <paulmakles@gmail.com> Date: Sun, 14 Jun 2020 09:55:01 +0100 Subject: [PATCH] Move API to root. --- src/routes/mod.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/routes/mod.rs b/src/routes/mod.rs index ebb40d2..78ccd62 100644 --- a/src/routes/mod.rs +++ b/src/routes/mod.rs @@ -61,9 +61,9 @@ impl<'a> rocket::response::Responder<'a> for Permission { pub fn mount(rocket: Rocket) -> Rocket { rocket - .mount("/api", routes![root::root]) + .mount("/", routes![root::root]) .mount( - "/api/account", + "/account", routes![ account::create, account::verify_email, @@ -73,7 +73,7 @@ pub fn mount(rocket: Rocket) -> Rocket { ], ) .mount( - "/api/users", + "/users", routes![ user::me, user::user, @@ -89,7 +89,7 @@ pub fn mount(rocket: Rocket) -> Rocket { ], ) .mount( - "/api/channels", + "/channels", routes![ channel::create_group, channel::channel, @@ -104,7 +104,7 @@ pub fn mount(rocket: Rocket) -> Rocket { ], ) .mount( - "/api/guild", + "/guild", routes![ guild::my_guilds, guild::guild, -- GitLab