This commit is contained in:
Mateusz Gruszczyński
2026-09-03 11:49:10 +02:00
parent 4c9f8ff403
commit d7b6d0478f
9 changed files with 7057 additions and 7 deletions
+3
View File
@@ -28,6 +28,8 @@ use crate::{
state::AppState,
};
mod openapi;
const INDEX_HTML: &str = include_str!("../web/index.html");
const NOT_FOUND_HTML: &str = include_str!("../web/404.html");
const APP_JS: &str = include_str!(concat!(env!("OUT_DIR"), "/app.bundle.js"));
@@ -139,6 +141,7 @@ pub fn router(state: AppState) -> Router {
.route("/lang/:file", get(language_file))
.route("/presets/index.json", get(preset_index))
.route("/presets/:file", get(preset_file))
.merge(openapi::swagger_ui(&state.config.base_path))
.merge(protected)
.merge(home_assistant_api);