forked from jmug/stoatchat
Move API to root.
This commit is contained in:
@@ -61,9 +61,9 @@ impl<'a> rocket::response::Responder<'a> for Permission {
|
|||||||
|
|
||||||
pub fn mount(rocket: Rocket) -> Rocket {
|
pub fn mount(rocket: Rocket) -> Rocket {
|
||||||
rocket
|
rocket
|
||||||
.mount("/api", routes![root::root])
|
.mount("/", routes![root::root])
|
||||||
.mount(
|
.mount(
|
||||||
"/api/account",
|
"/account",
|
||||||
routes![
|
routes![
|
||||||
account::create,
|
account::create,
|
||||||
account::verify_email,
|
account::verify_email,
|
||||||
@@ -73,7 +73,7 @@ pub fn mount(rocket: Rocket) -> Rocket {
|
|||||||
],
|
],
|
||||||
)
|
)
|
||||||
.mount(
|
.mount(
|
||||||
"/api/users",
|
"/users",
|
||||||
routes![
|
routes![
|
||||||
user::me,
|
user::me,
|
||||||
user::user,
|
user::user,
|
||||||
@@ -89,7 +89,7 @@ pub fn mount(rocket: Rocket) -> Rocket {
|
|||||||
],
|
],
|
||||||
)
|
)
|
||||||
.mount(
|
.mount(
|
||||||
"/api/channels",
|
"/channels",
|
||||||
routes![
|
routes![
|
||||||
channel::create_group,
|
channel::create_group,
|
||||||
channel::channel,
|
channel::channel,
|
||||||
@@ -104,7 +104,7 @@ pub fn mount(rocket: Rocket) -> Rocket {
|
|||||||
],
|
],
|
||||||
)
|
)
|
||||||
.mount(
|
.mount(
|
||||||
"/api/guild",
|
"/guild",
|
||||||
routes![
|
routes![
|
||||||
guild::my_guilds,
|
guild::my_guilds,
|
||||||
guild::guild,
|
guild::guild,
|
||||||
|
|||||||
Reference in New Issue
Block a user