-
Notifications
You must be signed in to change notification settings - Fork 66.9k
Expand file tree
/
Copy pathindex.ts
More file actions
21 lines (17 loc) · 786 Bytes
/
index.ts
File metadata and controls
21 lines (17 loc) · 786 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import express from 'express'
import handleInvalidQuerystrings from './handle-invalid-query-strings'
import handleInvalidPaths from './handle-invalid-paths'
import handleOldNextDataPaths from './handle-old-next-data-paths'
import handleInvalidQuerystringValues from './handle-invalid-query-string-values'
import handleInvalidNextPaths from './handle-invalid-nextjs-paths'
import handleInvalidHeaders from './handle-invalid-headers'
import { createRateLimiter } from './rate-limit'
const router = express.Router()
router.use(createRateLimiter())
router.use(handleInvalidQuerystrings)
router.use(handleInvalidPaths)
router.use(handleOldNextDataPaths)
router.use(handleInvalidQuerystringValues)
router.use(handleInvalidNextPaths)
router.use(handleInvalidHeaders)
export default router