diff options
| author | altaf-creator <dev@altafcreator.com> | 2026-01-20 23:21:10 +0800 |
|---|---|---|
| committer | altaf-creator <dev@altafcreator.com> | 2026-01-20 23:21:10 +0800 |
| commit | c4bb3217742e26210683d49715b37aa07955e689 (patch) | |
| tree | abeac79e43cd02bdf67d74ecac069d50fe31fa4b /backend | |
| parent | 3907c41203568f69b947bdde8f16f505eb26ba6a (diff) | |
admin panel
Diffstat (limited to 'backend')
| -rw-r--r-- | backend/main.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/backend/main.py b/backend/main.py index db2519d..f027e9f 100644 --- a/backend/main.py +++ b/backend/main.py @@ -126,6 +126,7 @@ class FinishRequestData(BaseModel): class OverrideMachineData(BaseModel): block: int machine_id: int + status: int # according to class Status class Status(Enum): @@ -472,6 +473,12 @@ def notif_subscribe(data: notif.PushSubscriptionData, response: fastapi.Response # #### ADMIN PANEL API END POINTS #### +# --- admin login +@app.post("admin_login", response_class=PlainTextResponse) +def admin_login(password: str, response: fastapi.Response): + pass + + # --- override each machine status @app.post("/override_status", response_class=PlainTextResponse) def override_status(data: OverrideMachineData, response: fastapi.Response, admin_auth: Annotated[str | None, fastapi.Cookie()] = None): |
