Skip to content

Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia

288 B
Raw Blame
import { Controller, Get, UseGuards } from '@nestjs/common';
import { ThrottlerBehindProxyGuard } from './guards/throttler-behind-proxy.guard';

@Controller('ping')
@UseGuards(ThrottlerBehindProxyGuard)
export class AppController {
  @Get()
  ping(): string {
    return 'Success';
  }
}