Skip to content

Commit

Permalink
fixed put route
Browse files Browse the repository at this point in the history
  • Loading branch information
FredrikSorum committed Feb 18, 2025
1 parent 6ac9e01 commit ec01443
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/src/routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit ec01443

Please sign in to comment.