mirror of
https://github.com/yuzu-emu/liftinstall
synced 2024-11-23 13:53:36 +00:00
Migrate assets to server module
This commit is contained in:
parent
3109d48dce
commit
f24d1112dd
4 changed files with 4 additions and 4 deletions
|
@ -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 ),* ) => {
|
|
@ -2,5 +2,6 @@
|
|||
//!
|
||||
//! Contains the main web server used within the application.
|
||||
|
||||
mod assets;
|
||||
pub mod server;
|
||||
pub mod services;
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -49,7 +49,6 @@ extern crate slug;
|
|||
extern crate sysinfo;
|
||||
|
||||
mod archives;
|
||||
mod assets;
|
||||
mod config;
|
||||
mod frontend;
|
||||
mod http;
|
||||
|
|
Loading…
Reference in a new issue