Files
sase.tr/apps/api/src/auth/auth.controller.ts
Fusion f4fea1e429
Some checks failed
Sync dev → Gitea / Mirror dev to Gitea (push) Has been cancelled
feat(FN-094): add comment line for deployment verification
- Added a comment line to main.ts for deployment verification purposes
2026-05-11 02:07:03 +00:00

17 lines
498 B
TypeScript

import { All, Controller, Req, Res } from "@nestjs/common";
import { toNodeHandler } from "better-auth/node";
import { Request, Response } from "express";
import { Public } from "../common/decorators/public.decorator";
import { getAuth } from "./auth";
@Controller("auth")
export class AuthController {
@Public()
@All("**")
async handleAuth(@Req() req: Request, @Res() res: Response) {
const auth = getAuth();
const handler = toNodeHandler(auth);
return handler(req, res);
}
}