summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHunternif <hunternif@gmail.com>2022-10-02 02:49:47 +0100
committerHunternif <hunternif@gmail.com>2022-10-02 02:49:47 +0100
commitbc44d8055bf3b65365bf5329a8a4ad4ac4177cfc (patch)
tree489edcbdd9ab5814b36fbefdc4dd0e517bb84f88
parent13e8b5d99a10b8f673e99b69b730e942ba23f0e5 (diff)
server: rename get_posts_similar_by_tags (unused)
-rw-r--r--server/szurubooru/api/post_api.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/szurubooru/api/post_api.py b/server/szurubooru/api/post_api.py
index ad779ae..2134b3b 100644
--- a/server/szurubooru/api/post_api.py
+++ b/server/szurubooru/api/post_api.py
@@ -340,8 +340,8 @@ def get_posts_median(
}
-@rest.routes.get("/post/(?P<post_id>[^/]+)/similar/?")
-def get_posts_similar(
+@rest.routes.get("/post/(?P<post_id>[^/]+)/similar-by-tags/?")
+def get_posts_similar_by_tags(
ctx: rest.Context, params: Dict[str, str]
) -> rest.Response:
auth.verify_privilege(ctx.user, "posts:view:similar")