Initial Commit
This commit is contained in:
18
src/organization/organization.route.ts
Normal file
18
src/organization/organization.route.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
import { FastifyInstance } from "fastify";
|
||||
import { $org } from "./organization.schema";
|
||||
import { createOrgHandler } from "./organization.controller";
|
||||
|
||||
export default function organizationRoutes(fastify: FastifyInstance) {
|
||||
fastify.post(
|
||||
"/",
|
||||
{
|
||||
schema: {
|
||||
body: $org("createOrgInput"),
|
||||
response: {
|
||||
201: $org("createOrgResponse"),
|
||||
},
|
||||
},
|
||||
},
|
||||
createOrgHandler
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user