Skip to content
Snippets Groups Projects
Verified Commit 0a027b68 authored by insert's avatar insert
Browse files

Move API to root.

parent 50ef5c43
No related merge requests found
......@@ -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,
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment