Merge branch 'development' into 'devops-staging'
fix: profile See merge request empatnusabangsa/ppob/ppob-backend!81
This commit is contained in:
commit
e0b8512818
|
@ -1,4 +1,4 @@
|
||||||
import { Controller, Get, Post, Request, UseGuards } from '@nestjs/common';
|
import { Controller, Get, Param, ParseUUIDPipe, Post, Request, UseGuards } from '@nestjs/common';
|
||||||
import { LocalAuthGuard } from './local-auth.guard';
|
import { LocalAuthGuard } from './local-auth.guard';
|
||||||
import { AuthService } from './auth.service';
|
import { AuthService } from './auth.service';
|
||||||
import { Public } from './public.decorator';
|
import { Public } from './public.decorator';
|
||||||
|
@ -21,4 +21,9 @@ export class AuthController {
|
||||||
getProfile(@Request() req) {
|
getProfile(@Request() req) {
|
||||||
return this.authService.getProfile(req.user.userId);
|
return this.authService.getProfile(req.user.userId);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Get('profile/:id')
|
||||||
|
getProfileById(@Param('id', ParseUUIDPipe) id: string) {
|
||||||
|
return this.authService.getProfile(id);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user