Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 | 57x 57x 57x 57x 57x 57x 57x 57x 57x 57x 57x | import { ERouteControllerActionMethod, ERouteControllerActionPayload, IRouteController, } from '../../../../../common/routing'; import { SetRateLimitHandler } from './set-rate-limit/set-rate-limit.handler'; import { SetRateLimitRequestDTO } from './set-rate-limit/set-rate-limit.request.DTO'; import { SetRateLimitResponseDTO } from './set-rate-limit/set-rate-limit.response.DTO'; import { GetRateLimitHandler } from './get-rate-limit/get-rate-limit.handler'; import { GetRateLimitRequestDTO } from './get-rate-limit/get-rate-limit.request.DTO'; import { GetRateLimitResponseDTO } from './get-rate-limit/get-rate-limit.response.DTO'; import { ClearRateLimitHandler } from './clear-rate-limit/clear-rate-limit.handler'; import { ClearRateLimitRequestDTO } from './clear-rate-limit/clear-rate-limit.request.DTO'; import { ClearRateLimitResponseDTO } from './clear-rate-limit/clear-rate-limit.response.DTO'; export const controller: IRouteController = { path: '/rate-limit', actions: [ { path: '/', method: ERouteControllerActionMethod.POST, payload: [ ERouteControllerActionPayload.PATH, ERouteControllerActionPayload.BODY, ], Handler: SetRateLimitHandler, RequestDTO: SetRateLimitRequestDTO, ResponseDTO: SetRateLimitResponseDTO, }, { path: '/', method: ERouteControllerActionMethod.GET, payload: [ERouteControllerActionPayload.PATH], Handler: GetRateLimitHandler, RequestDTO: GetRateLimitRequestDTO, ResponseDTO: GetRateLimitResponseDTO, }, { path: '/', method: ERouteControllerActionMethod.DELETE, payload: [ERouteControllerActionPayload.PATH], Handler: ClearRateLimitHandler, RequestDTO: ClearRateLimitRequestDTO, ResponseDTO: ClearRateLimitResponseDTO, }, ], }; |