diff --git a/.gitignore b/.gitignore index ac68707..08775f9 100644 --- a/.gitignore +++ b/.gitignore @@ -1,8 +1,4 @@ *__pycache__* /node_modules -<<<<<<< HEAD - -======= /devfolder -.vscode ->>>>>>> 0d9e690db10b6dfbef3d9aa4316e52d1e8cb8f6a +.vscode \ No newline at end of file diff --git a/backend/rest_api.py b/backend/rest_api.py index 1ac13aa..165b2c9 100644 --- a/backend/rest_api.py +++ b/backend/rest_api.py @@ -18,18 +18,6 @@ def handle_first_launched(): folder_path = path.join(folder_path, "Unnamed_Password_Manager") if not path.exists(folder_path): mkdir(folder_path) - - -@app.route('/favicon.ico') -def favicon() -> Response: - favicon_path: str = path.join(app.root_path, '../frontend/static', 'favicon.ico') - return send_file(favicon_path, mimetype='image/vnd.microsoft.icon') - - -@app.route("/index.html") -def handle_index() -> Response: - index_path: str = path.join(app.root_path, "../frontend/html", "index.html") - return send_file(index_path, mimetype="text/html") @app.get("/") @@ -466,3 +454,10 @@ class QueryHandler: ) return Response(status=200) +import os +from os import path + +@app.route('/favicon.ico') +def favicon(): + favicon_path = os.path.join(app.root_path, 'static', 'favicon.ico') + return send_file(favicon_path, mimetype='image/vnd.microsoft.icon') \ No newline at end of file diff --git a/frontend/html/dashboard.html b/frontend/html/dashboard.html index 8cc9d7d..131fba4 100644 --- a/frontend/html/dashboard.html +++ b/frontend/html/dashboard.html @@ -3,6 +3,13 @@
+