router registration for get_voice_channels

This commit is contained in:
shockrah 2020-03-11 00:40:04 -07:00
parent ce4ef515bd
commit a1402e79bb

View File

@ -23,8 +23,9 @@ mod invites;
mod payload;
mod rand_utils;
mod users;
mod channels;
use invites::*;
use channels::*;
#[database("freechat")]
pub struct DBConn(diesel::MysqlConnection);
@ -35,6 +36,9 @@ pub fn rocket() -> rocket::Rocket {
.mount("/invite", routes![
generate_invite, use_invite
])
.mount("/channels", routes![
get_voice_channels
])
.attach(Template::fairing())
.attach(DBConn::fairing())
}