diff options
| author | Tim Keller <tjk@tjkeller.xyz> | 2025-12-20 20:12:23 -0600 |
|---|---|---|
| committer | Tim Keller <tjk@tjkeller.xyz> | 2025-12-20 20:12:23 -0600 |
| commit | 04519ae191183347b95d05ab5352dc6e1ffe1b0d (patch) | |
| tree | 392274904f38c08fee8dae5be5c7b503a739e6b3 | |
| parent | e4ff6c4028c33feac03bb32bbd0eda84d8138a8f (diff) | |
| download | immich-frame-04519ae191183347b95d05ab5352dc6e1ffe1b0d.tar.xz immich-frame-04519ae191183347b95d05ab5352dc6e1ffe1b0d.zip | |
remove old routes and point api connector to window.location.origin
| -rw-r--r-- | src/client/src/lib/connector.ts | 2 | ||||
| -rw-r--r-- | src/server/flaskapi.py | 3 |
2 files changed, 1 insertions, 4 deletions
diff --git a/src/client/src/lib/connector.ts b/src/client/src/lib/connector.ts index 0224438..1b635b2 100644 --- a/src/client/src/lib/connector.ts +++ b/src/client/src/lib/connector.ts @@ -109,5 +109,5 @@ class APIConnector { assetFileName(key) { return this.fetch(`/asset/${key}/filename`).then(d => d.filename) } } -const apiConnector = new APIConnector("http://192.168.1.182:8080/") +const apiConnector = new APIConnector(window.location.origin) export default apiConnector diff --git a/src/server/flaskapi.py b/src/server/flaskapi.py index 6b910fa..d486c44 100644 --- a/src/server/flaskapi.py +++ b/src/server/flaskapi.py @@ -15,9 +15,6 @@ CORS(api, origins="*") # NOTE debug @app.route("/") -@app.route("/slideshow") -@app.route("/albums") -@app.route("/settings") def home(): return send_from_directory(static_folder, "index.html") |
