diff --git a/resources/web/config.html b/resources/web/config.html index 013c9c3..60cc2a9 100644 --- a/resources/web/config.html +++ b/resources/web/config.html @@ -5,7 +5,7 @@ Ultimate Backend Configuration - +
@@ -148,6 +148,6 @@
- + \ No newline at end of file diff --git a/service.py b/service.py index 59f020f..ada1e93 100644 --- a/service.py +++ b/service.py @@ -1850,6 +1850,20 @@ class UltimateService: response.content_type = 'text/html; charset=utf-8' return self.config_html + @app.route('/config.css') + def serve_config_css(): + """Serve the CSS file""" + css_path = os.path.join(os.path.dirname(os.path.abspath(__file__)), + 'resources', 'web', 'config.css') + return send_file(css_path, mimetype='text/css') + + @app.route('/config.js') + def serve_config_js(): + """Serve the JavaScript file""" + js_path = os.path.join(os.path.dirname(os.path.abspath(__file__)), + 'resources', 'web', 'config.js') + return send_file(js_path, mimetype='application/javascript') + @self.app.route('/') def serve_root(): """Redirect root to config page"""