New controllers and services; Auth
This commit is contained in:
parent
2fc0f9c404
commit
d17f37749d
35 changed files with 1040 additions and 164 deletions
10
src/controllers/invite/routes.ts
Normal file
10
src/controllers/invite/routes.ts
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
import { type FastifyInstance } from "fastify";
|
||||
import * as controller from "./index.js";
|
||||
|
||||
const inviteRoutes = async (fastify: FastifyInstance) => {
|
||||
fastify.get(`/:id`, controller.getInvite);
|
||||
fastify.delete(`/:id`, controller.deleteInvite);
|
||||
fastify.post(`/:id/accept`, controller.postAcceptInvite);
|
||||
};
|
||||
|
||||
export { inviteRoutes };
|
||||
Loading…
Add table
Add a link
Reference in a new issue