v0.11.6
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user