From ec01443e04b538976715959f95db5e1d4b3c8997 Mon Sep 17 00:00:00 2001 From: FredrikSorum Date: Tue, 18 Feb 2025 15:45:08 +0100 Subject: [PATCH] fixed put route --- api/src/routes.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/src/routes.ts b/api/src/routes.ts index c7f6696..21915fc 100644 --- a/api/src/routes.ts +++ b/api/src/routes.ts @@ -24,8 +24,8 @@ export default async function apiRoutes(fastify: FastifyInstance, options: Fasti fastify.post("/blacklist", blacklistPostHandler) // PUT handlers - fastify.put("/whitelist/:name/:oldVersion/:newVersion/:ecosystem", whitelistPutHandler) - fastify.put("/blacklist/:name/:oldVersion/:newVersion/:ecosystem", blacklistPutHandler) + fastify.put("/whitelist", whitelistPutHandler) + fastify.put("/blacklist", blacklistPutHandler) // DELETE handlers fastify.delete("/whitelist/:name", whitelistDeleteHandler)