mirror of
https://github.com/yuzu-emu/liftinstall.git
synced 2024-11-25 17:45:41 +01:00
Migrate assets to server module
This commit is contained in:
parent
3109d48dce
commit
f24d1112dd
@ -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 New Issue
Block a user