Skip to content

Commit

Permalink
🛣️routes: notification delete route
Browse files Browse the repository at this point in the history
  • Loading branch information
0thigs committed Oct 25, 2024
1 parent 262578e commit 5870d9f
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions apps/server/src/app/fastify/routes/notifications-routes.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { FastifyInstance } from "fastify"
import { FastifyHttp } from "../fastify-http"
import { DeleteNotificationController } from "@/api/controllers/notifications"

export const NotificationsRoutes = async (app: FastifyInstance) => {
const deleteNotificationController = new DeleteNotificationController()

app.delete('/:notificationId', async (request, response) => {
const http = new FastifyHttp(request, response)
return deleteNotificationController.handle(http)
})
}

0 comments on commit 5870d9f

Please sign in to comment.