UNPKG

ticket-auth-project

Version:

[Nest](https://github.com/nestjs/nest) framework TypeScript starter repository.

12 lines (10 loc) 297 B
import { Body, Controller, Post } from '@nestjs/common'; import { AuthService } from './auth.service'; @Controller('auth') export class AuthController { constructor(private authService: AuthService) {} @Post('login') async login(@Body() req) { return this.authService.login(req); } }