@nestjs/swagger#ApiExcludeController TypeScript Examples
The following examples show how to use
@nestjs/swagger#ApiExcludeController.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: user-points.controller.ts From ironfish-api with Mozilla Public License 2.0 | 6 votes |
@ApiExcludeController()
@Controller('user_points')
export class UserPointsController {
constructor(private readonly graphileWorkerService: GraphileWorkerService) {}
@ApiExcludeEndpoint()
@UseGuards(ApiKeyGuard)
@Post('refresh')
async refresh(): Promise<void> {
await this.graphileWorkerService.addJob(
GraphileWorkerPattern.REFRESH_USERS_POINTS,
);
}
}
Example #2
Source File: me.controller.ts From ironfish-api with Mozilla Public License 2.0 | 6 votes |
@ApiExcludeController()
@Controller('me')
export class MeController {
@Get()
@UseGuards(MagicLinkGuard)
me(@Context() { user }: MagicLinkContext): User {
return user;
}
}