From 30a7f8dddf237029b6c2541e2d924d3a97e294cc Mon Sep 17 00:00:00 2001 From: Sebastien DUMETZ Date: Tue, 16 Jul 2024 13:59:44 +0200 Subject: [PATCH] fix route names for tags --- source/server/routes/tags/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/server/routes/tags/index.ts b/source/server/routes/tags/index.ts index a4cb2444..c72a1359 100644 --- a/source/server/routes/tags/index.ts +++ b/source/server/routes/tags/index.ts @@ -8,8 +8,8 @@ import getTag from "./tag/get.js"; const router = Router(); -router.get("/tags", isUser, wrap(getTags)); -router.get("/tags/:tag", isUser, wrap(getTag)); +router.get("/", isUser, wrap(getTags)); +router.get("/:tag", isUser, wrap(getTag)); export default router; \ No newline at end of file