Skip to content

Commit

Permalink
Merge pull request #81 from IGAQ/ilia-add-return-type-for-auth-contro…
Browse files Browse the repository at this point in the history
…ller

fix the small changes
  • Loading branch information
iantelli authored Nov 18, 2022
2 parents 6bc3f91 + 433764d commit 83fbf78
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/auth/controllers/auth.controller.ts
Original file line number Diff line number Diff line change
@@ -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";
Expand All @@ -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<SignTokenDto> {
return this._authService.signup(signUpPayloadDto);
}

@Post("signin")
public signin(@Body() signInPayloadDto: SignInPayloadDto) {
public signin(@Body() signInPayloadDto: SignInPayloadDto): Promise<SignTokenDto> {
return this._authService.signIn(signInPayloadDto);
}

Expand Down

0 comments on commit 83fbf78

Please sign in to comment.