Don't register the media serving route (they are now served with other static files)

And remove some unused imports
This commit is contained in:
Bat 2018-10-12 20:48:11 +01:00
parent dde4583fd3
commit 9d70eeae61
2 changed files with 2 additions and 3 deletions

View File

@ -100,7 +100,6 @@ fn main() {
routes::medias::details, routes::medias::details,
routes::medias::delete, routes::medias::delete,
routes::medias::set_avatar, routes::medias::set_avatar,
routes::medias::static_files,
routes::notifications::paginated_notifications, routes::notifications::paginated_notifications,
routes::notifications::notifications, routes::notifications::notifications,

View File

@ -1,9 +1,9 @@
use guid_create::GUID; use guid_create::GUID;
use multipart::server::{Multipart, save::{SavedData, SaveResult}}; use multipart::server::{Multipart, save::{SavedData, SaveResult}};
use rocket::{Data, http::ContentType, response::{NamedFile, Redirect}}; use rocket::{Data, http::ContentType, response::Redirect};
use rocket_contrib::Template; use rocket_contrib::Template;
use serde_json; use serde_json;
use std::{fs, path::{Path, PathBuf}}; use std::fs;
use plume_models::{db_conn::DbConn, medias::*, users::User}; use plume_models::{db_conn::DbConn, medias::*, users::User};
#[get("/medias")] #[get("/medias")]