Add all friend routes.

This commit is contained in:
Paul Makles
2020-01-26 14:16:58 +00:00
parent 92f20d7b12
commit 20c82ddef3
5 changed files with 262 additions and 25 deletions

View File

@@ -6,5 +6,5 @@ mod user;
pub fn mount(rocket: Rocket) -> Rocket {
rocket
.mount("/api/account", routes![ account::create, account::verify_email, account::resend_email, account::login ])
.mount("/api/users", routes![ user::me, user::dms, user::lookup ])
.mount("/api/users", routes![ user::me, user::user, user::lookup, user::dms, user::dm, user::get_friends, user::get_friend, user::add_friend, user::remove_friend ])
}