@arsendoman/book-publisher-store
Version:
A Nest.js package for book publishing and storing
29 lines (25 loc) • 873 B
text/typescript
import {
Controller,
Post,
Body,
ValidationPipe,
UsePipes,
} from '@nestjs/common';
import { AuthLoginDto } from 'src/application/dtos/request/auth/auth.login.dto';
import { ProfileDto } from 'src/application/dtos/request/profile/profileDto';
import { AuthResponseDto } from 'src/application/dtos/response/auth/auth.response.dto';
import { AuthService } from '../../../application/auth/services/auth.service';
export class BasicAuthController {
constructor(private readonly authService: AuthService) {}
create( registerDto: ProfileDto): Promise<AuthResponseDto> {
console.log(23424);
return this.authService.signUp(registerDto);
}
findAll( authDto: AuthLoginDto): Promise<AuthResponseDto> {
return this.authService.login(authDto);
}
}