diff options
author | AUTOMATIC <16777216c@gmail.com> | 2023-05-09 11:42:47 +0300 |
---|---|---|
committer | AUTOMATIC <16777216c@gmail.com> | 2023-05-09 11:42:47 +0300 |
commit | ad6ec0226118b80e79446f16747976a1dd1fabcd (patch) | |
tree | 47fe7e5c227607b171148853fd434391591959ec /modules/ui.py | |
parent | eb95809501068a38f2b6bdb01b6ae5b86ff7ae87 (diff) |
prevent Reload UI button/link from reloading the page when it's not yet ready
Diffstat (limited to 'modules/ui.py')
-rw-r--r-- | modules/ui.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/ui.py b/modules/ui.py index 842c57f7..34b2aaff 100644 --- a/modules/ui.py +++ b/modules/ui.py @@ -1958,3 +1958,5 @@ def setup_ui_api(app): return [QuicksettingsHint(name=k, label=v.label) for k, v in opts.data_labels.items()]
app.add_api_route("/internal/quicksettings-hint", quicksettings_hint, methods=["GET"], response_model=List[QuicksettingsHint])
+
+ app.add_api_route("/internal/ping", lambda: {}, methods=["GET"])
|