code cleanup & multi-channel support
This commit is contained in:
+1
-5
@@ -2,18 +2,15 @@
|
||||
#[macro_use]
|
||||
extern crate rocket;
|
||||
|
||||
use redis::cmd;
|
||||
use rocket::fs::{FileServer, NamedFile};
|
||||
use rocket::http::Method;
|
||||
use rocket::serde::json::Json;
|
||||
use rocket::{Build, Rocket};
|
||||
use rocket_cors::{AllowedOrigins, CorsOptions};
|
||||
use rocket_db_pools::{Connection, Database};
|
||||
use rocket_db_pools::Database;
|
||||
use rocket_dyn_templates::Template;
|
||||
use std::env;
|
||||
use std::sync::{Arc, LazyLock};
|
||||
|
||||
use crate::auth::Session;
|
||||
use crate::db::{Postgres, Redis};
|
||||
|
||||
pub mod auth;
|
||||
@@ -67,7 +64,6 @@ fn rocket() -> Rocket<Build> {
|
||||
"/api",
|
||||
routes![
|
||||
cdn::upload_profile_pic,
|
||||
messenger::get_messages,
|
||||
messenger::post_message,
|
||||
messenger::event_stream,
|
||||
user::users,
|
||||
|
||||
Reference in New Issue
Block a user