diff options
| author | Tim Keller <tjk@tjkeller.xyz> | 2025-06-16 21:58:13 -0500 |
|---|---|---|
| committer | Tim Keller <tjk@tjkeller.xyz> | 2025-06-16 21:58:13 -0500 |
| commit | c5465f7ceed37f1ba6575248e1035e1430e78921 (patch) | |
| tree | d8d49d0b716f7188ffe2c27b4ca92361905215d2 /flaskapi.py | |
| parent | b8df4605b42d9a61bb4ae4731efabbdc38166063 (diff) | |
| download | immich-frame-c5465f7ceed37f1ba6575248e1035e1430e78921.tar.xz immich-frame-c5465f7ceed37f1ba6575248e1035e1430e78921.zip | |
config route and fix config saving/creation
Diffstat (limited to 'flaskapi.py')
| -rw-r--r-- | flaskapi.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/flaskapi.py b/flaskapi.py index 45616ec..bb670a2 100644 --- a/flaskapi.py +++ b/flaskapi.py @@ -1,4 +1,4 @@ -from flask import Flask, Blueprint, request, send_from_directory, send_file, abort, redirect +from flask import Flask, Blueprint, request, send_from_directory, send_file, abort, redirect, jsonify from flask_socketio import SocketIO, emit from flask_cors import CORS @@ -62,5 +62,9 @@ def immich_redirect(path): def config_update(): return { "success": PixMan().update_config(request.json) } +@api.route("/config") +def config(): + return jsonify(PixMan().config) + app.register_blueprint(api, url_prefix="/api") |
