diff --git a/src/auth/controllers/auth.controller.ts b/src/auth/controllers/auth.controller.ts index f24e5e6..ce23320 100644 --- a/src/auth/controllers/auth.controller.ts +++ b/src/auth/controllers/auth.controller.ts @@ -1,6 +1,6 @@ import { Body, Controller, Inject, Post, UseGuards } from "@nestjs/common"; import { ApiBearerAuth, ApiTags } from "@nestjs/swagger"; -import { SignInPayloadDto, SignUpPayloadDto } from "../dtos"; +import { SignInPayloadDto, SignTokenDto, SignUpPayloadDto } from "../dtos"; import { IAuthService } from "../services/auth.service.interface"; import { AuthGuard } from "@nestjs/passport"; import { _$ } from "../../_domain/injectableTokens"; @@ -14,12 +14,12 @@ export class AuthController { constructor(@Inject(_$.IAuthService) private _authService: IAuthService) {} @Post("signup") - public signup(@Body() signUpPayloadDto: SignUpPayloadDto) { + public signup(@Body() signUpPayloadDto: SignUpPayloadDto): Promise { return this._authService.signup(signUpPayloadDto); } @Post("signin") - public signin(@Body() signInPayloadDto: SignInPayloadDto) { + public signin(@Body() signInPayloadDto: SignInPayloadDto): Promise { return this._authService.signIn(signInPayloadDto); }