Add services and auth
This commit is contained in:
parent
9b0b5dc040
commit
5dec454afb
46 changed files with 900 additions and 31 deletions
9
src/controllers/auth/routes.ts
Normal file
9
src/controllers/auth/routes.ts
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
import { type FastifyInstance } from "fastify";
|
||||
import * as controller from "./auth.js";
|
||||
|
||||
const authRoutes = async (fastify: FastifyInstance) => {
|
||||
fastify.post(`/register`, controller.postRegister);
|
||||
fastify.post(`/login`, controller.postLogin);
|
||||
};
|
||||
|
||||
export { authRoutes };
|
||||
Loading…
Add table
Add a link
Reference in a new issue