Migrate assets to server module

This commit is contained in:
James 2019-06-23 21:55:16 +10:00
parent 3109d48dce
commit f24d1112dd
4 changed files with 4 additions and 4 deletions

View File

@ -2,7 +2,7 @@
extern crate mime_guess;
use assets::mime_guess::{get_mime_type, octet_stream};
use self::mime_guess::{get_mime_type, octet_stream};
macro_rules! include_files_as_assets {
( $target_match:expr, $( $file_name:expr ),* ) => {

View File

@ -2,5 +2,6 @@
//!
//! Contains the main web server used within the application.
mod assets;
pub mod server;
pub mod services;

View File

@ -4,6 +4,8 @@
//!
//! e.g. index.html, main.js, ...
use frontend::rest::assets;
use frontend::rest::services::default_future;
use frontend::rest::services::Future;
use frontend::rest::services::Request;
@ -15,8 +17,6 @@ use hyper::StatusCode;
use logging::LoggingErrors;
use assets;
pub fn handle(_service: &WebService, req: Request) -> Future {
// At this point, we have a web browser client. Search for a index page
// if needed

View File

@ -49,7 +49,6 @@ extern crate slug;
extern crate sysinfo;
mod archives;
mod assets;
mod config;
mod frontend;
mod http;