9 lines
280 B
TypeScript
9 lines
280 B
TypeScript
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 };
|