Closed zayKenyon closed 5 months ago
Getting Started -> Complete Example -> AutoRouter
import { AutoRouter } from 'itty-router' + const router = AutoRouter() router .get('/hello/:name', ({ name }) => `Hello, ${name}!`) .get('/json', () => ({ foo: 'bar' })) .get('/throw', (a) => a.b.c) // safely throws export default router
Dang dude, my bad! ❤️
Getting Started -> Complete Example -> AutoRouter