feat(app): added better auth for better auth stuff vs my home written broken one
This commit is contained in:
8
app/src/internal/auth/routes/routes.ts
Normal file
8
app/src/internal/auth/routes/routes.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
import type { Express, Request, Response } from "express";
|
||||
import me from "./me.js";
|
||||
import register from "./register.js";
|
||||
|
||||
export const setupAuthRoutes = (app: Express, basePath: string) => {
|
||||
app.use(basePath + "/api/me", me);
|
||||
app.use(basePath + "/api/auth/register", register);
|
||||
};
|
||||
Reference in New Issue
Block a user