mirror of
https://github.com/Noratrieb/haesli.git
synced 2026-01-16 12:45:04 +01:00
remove old code
This commit is contained in:
parent
85ef2aa7fd
commit
392bf67fc2
5 changed files with 0 additions and 105 deletions
|
|
@ -14,10 +14,6 @@ use serde::Serialize;
|
|||
use tower_http::cors::{Any, CorsLayer};
|
||||
use tracing::{error, info};
|
||||
|
||||
// const INDEX_HTML: &str = include_str!("../assets/index.html");
|
||||
// const SCRIPT_JS: &str = include_str!("../assets/script.js");
|
||||
// const STYLE_CSS: &str = include_str!("../assets/style.css");
|
||||
|
||||
const DATA_ZIP: &[u8] = include_bytes!(concat!(env!("OUT_DIR"), "/frontend.zip"));
|
||||
|
||||
pub async fn dashboard(global_data: GlobalData) {
|
||||
|
|
@ -32,9 +28,6 @@ pub async fn dashboard(global_data: GlobalData) {
|
|||
});
|
||||
|
||||
let app = Router::new()
|
||||
//.route("/", get(get_index_html))
|
||||
//.route("/script.js", get(get_script_js))
|
||||
//.route("/style.css", get(get_style_css))
|
||||
.route("/api/data", get(move || get_data(global_data)).layer(cors))
|
||||
.fallback(static_file_service);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue