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