From 179dfaa60ed3aac66f2e65424c81a5a449e3fb94 Mon Sep 17 00:00:00 2001 From: Trim21 Date: Mon, 26 Aug 2024 02:45:03 +0800 Subject: [PATCH] unify api path style --- server/contrib.py | 2 +- server/templates/patch.html.jinja2 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/server/contrib.py b/server/contrib.py index 9e57973..fb281fd 100644 --- a/server/contrib.py +++ b/server/contrib.py @@ -140,7 +140,7 @@ async def suggest_api( @router @litestar.post( - "/api/delete-patch/{patch_id:str}", + "/api/delete-subject/{patch_id:str}", guards=[require_user_login], status_code=200, ) diff --git a/server/templates/patch.html.jinja2 b/server/templates/patch.html.jinja2 index 43f5d87..844a7d7 100644 --- a/server/templates/patch.html.jinja2 +++ b/server/templates/patch.html.jinja2 @@ -69,7 +69,7 @@
-
+ {{ csrf_input | safe }}