diff options
| author | Tim Keller <tjkeller.xyz> | 2025-05-10 20:01:04 -0500 |
|---|---|---|
| committer | Tim Keller <tjkeller.xyz> | 2025-05-10 20:01:04 -0500 |
| commit | 8afd27d113d20f924df73456374153397039e1ba (patch) | |
| tree | c6251e65511b73f71108c4af0e3e9ed57212f704 | |
| parent | e7036d21d5e5c87702724283f55a77d07344f4fe (diff) | |
| download | immich-frame-8afd27d113d20f924df73456374153397039e1ba.tar.xz immich-frame-8afd27d113d20f924df73456374153397039e1ba.zip | |
add module for immich frame client project and endpoints (merge later)
| -rw-r--r-- | .gitmodules | 3 | ||||
| -rw-r--r-- | flaskapi.py | 9 | ||||
| m--------- | static | 6 |
3 files changed, 15 insertions, 3 deletions
diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..b8e8233 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,3 @@ +[submodule "static"] + path = static + url = git@publicgit:immich-frame diff --git a/flaskapi.py b/flaskapi.py index 4b1a259..29cea7e 100644 --- a/flaskapi.py +++ b/flaskapi.py @@ -1,10 +1,13 @@ -from flask import Flask, Blueprint, request +from flask import Flask, Blueprint, request, send_from_directory -app = Flask(__name__) +app = Flask(__name__, static_folder="static/dist", static_url_path="/") @app.route("/") +@app.route("/slideshow") +@app.route("/albums") +@app.route("/settings") def home(): - return "Flask is running!" + return send_from_directory("static/public", "index.html") api = Blueprint("api", __name__) diff --git a/static b/static new file mode 160000 +Subproject f86d11c3ce1f04ee89da235d78447aed6d6d713 |
