import { Body , Controller , Post } from '@nestjs/common' ; import { ApiImplicitBody , ApiUseTags } from '@nestjs/swagger' ; import { AccountDto } from '../../dtos/account.dto' ; import { Token } from '../../interfaces/auth.interface' ; import { AccountService } from './account.service' ; @ ApiUseTags ( 'account' ) @ Controller ( ) export class AccountController { constructor ( private readonly accountService ) { } @ Post ( 'signUp' ) async signUp ( @ Body ( ) authDto ) { return await this . accountService . signUp ( authDto ) ; } @ Post ( 'signIn' ) async signIn ( @ Body ( ) authDto ) { return await this . accountService . signIn ( authDto ) ; } }