Spaces:
Sleeping
Sleeping
Download src/modules/profile/profile.controller.ts from mahrooshishaq/SmartfolioBackend: direct link, hf CLI and curl.
- Browser
- Download file 590 Bytes
-
https://huggingface.co/spaces/mahrooshishaq/SmartfolioBackend/resolve/main/src/modules/profile/profile.controller.ts
- Command line
-
hf download hf://spaces/mahrooshishaq/SmartfolioBackend/src/modules/profile/profile.controller.ts
-
curl -L -o profile.controller.ts https://huggingface.co/spaces/mahrooshishaq/SmartfolioBackend/resolve/main/src/modules/profile/profile.controller.ts
590 Bytes
| import { Controller, Get, UseGuards, Req } from '@nestjs/common'; | |
| import { JwtAuthGuard } from '../auth/jwt-auth.guard'; | |
| import { AuthenticatedRequest } from '../../common/interfaces/authenticated-request.interface'; | |
| import { ApiBearerAuth, ApiTags, ApiExcludeController } from '@nestjs/swagger'; | |
| () | |
| ('Profile') | |
| () | |
| ('profile') | |
| export class ProfileController { | |
| () | |
| (JwtAuthGuard) | |
| getProfile(() req: AuthenticatedRequest) { | |
| return { | |
| message: 'Protected route success', | |
| user: req.user, | |
| }; | |
| } | |
| } | |