add /search endpoints
This commit is contained in:
@@ -57,13 +57,25 @@ export async function notificationRoutes(fastify: FastifyInstance) {
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
config: { requiredClaims: ["notification:delete"] },
|
||||
preHandler: [fastify.authorize],
|
||||
},
|
||||
deleteNotificationHandler
|
||||
);
|
||||
|
||||
fastify.get(
|
||||
"/search",
|
||||
{
|
||||
schema: {
|
||||
querystring: $notification("pageQueryParams"),
|
||||
},
|
||||
|
||||
config: { requiredClaims: ["notification:delete"] },
|
||||
preHandler: [fastify.authorize],
|
||||
},
|
||||
listNotificationsHandler
|
||||
);
|
||||
|
||||
fastify.get(
|
||||
"/fields/:field",
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user