feat: include permit create endpoint
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import { FastifyInstance } from "fastify";
|
||||
import {
|
||||
createPermitHandler,
|
||||
deletePermitHandler,
|
||||
getPermitHandler,
|
||||
listPermitsHandler,
|
||||
@@ -12,7 +13,7 @@ import { noteRoutes } from "../note/note.route";
|
||||
import { getUniqueFields } from "../unique";
|
||||
|
||||
export async function permitRoutes(fastify: FastifyInstance) {
|
||||
/* fastify.post(
|
||||
fastify.post(
|
||||
"/",
|
||||
{
|
||||
schema: {
|
||||
@@ -22,7 +23,7 @@ export async function permitRoutes(fastify: FastifyInstance) {
|
||||
preHandler: [fastify.authorize],
|
||||
},
|
||||
createPermitHandler
|
||||
); */
|
||||
);
|
||||
|
||||
fastify.get(
|
||||
"/:permitId",
|
||||
|
||||
Reference in New Issue
Block a user