13 lines
458 B
Rust
13 lines
458 B
Rust
use rocket::Rocket;
|
|
|
|
pub mod account;
|
|
pub mod user;
|
|
pub mod channel;
|
|
|
|
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::user, user::lookup, user::dms, user::dm, user::get_friends, user::get_friend, user::add_friend, user::remove_friend ])
|
|
.mount("/api/channels", routes![ channel::channel ])
|
|
}
|