all
This commit is contained in:
1 parent
90125aede9
commit
2d6c29a1f3
404 files changed
+126983
-85
No files matched your search
@@ -0,0 +1,18 @@
|
||||
import { Body, Controller, Inject, Post } from "@nestjs/common";
|
||||
import type { LoginInput } from "../../dtos/auth.dto.js";
|
||||
import {
|
||||
AUTH_SERVICE,
|
||||
type IAuthService,
|
||||
} from "./interfaces/auth-service.interface.js";
|
||||
|
||||
@Controller("auth")
|
||||
export class AuthController {
|
||||
constructor(
|
||||
@Inject(AUTH_SERVICE) private readonly authService: IAuthService,
|
||||
) {}
|
||||
|
||||
@Post("login")
|
||||
login(@Body() body: LoginInput) {
|
||||
return this.authService.login(body);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user