Renamed rocket_api to api

This commit is contained in:
Antoine Gersant 2018-11-11 11:11:24 -08:00
parent c6d5f7b7ee
commit 9dbf8526dc
2 changed files with 2 additions and 2 deletions

View file

@ -59,6 +59,7 @@ use simplelog::{Level, LevelFilter, SimpleLogger, TermLogger};
use std::path::Path; use std::path::Path;
use std::sync::Arc; use std::sync::Arc;
mod api;
mod config; mod config;
mod db; mod db;
mod ddns; mod ddns;
@ -67,7 +68,6 @@ mod index;
mod lastfm; mod lastfm;
mod metadata; mod metadata;
mod playlist; mod playlist;
mod rocket_api;
mod serve; mod serve;
mod thumbnails; mod thumbnails;
mod ui; mod ui;
@ -243,7 +243,7 @@ fn run() -> Result<()> {
.manage(db_server) .manage(db_server)
.manage(command_sender) .manage(command_sender)
.mount(&static_url, StaticFiles::from(web_dir_path)) .mount(&static_url, StaticFiles::from(web_dir_path))
.mount(&api_url, rocket_api::get_routes()) .mount(&api_url, api::get_routes())
.launch(); .launch();
}); });