Created
March 25, 2024 03:35
-
-
Save yusukebe/b7aef38f5d06b125b5434440a76d661f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let code1 = ` | |
import { Hono } from 'hono' | |
const app = new Hono() | |
const routes = app | |
` | |
for (let i = 1; i < 300; i++) { | |
code1 += `.get('/route${i}', (c) => { | |
return c.json({ | |
ok: true | |
}) | |
})` | |
} | |
code1 += ` | |
export type AppType = typeof routes | |
export default routes | |
` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment