Frontend/25_02_24/node_modules/@tinyhttp/router/README.md
2025-02-25 09:55:29 +01:00

573 B

@tinyhttp/router

npm (scoped) npm

Framework-agnostic HTTP router.

Install

pnpm i @tinyhttp/router

Example

import { Router } from '@tinyhttp/router'

const router = new Router()

router.get('/', (req, res) => res.send('Hello World'))

console.log(router.middleware)