We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 344add7 commit a8d8138Copy full SHA for a8d8138
benchmarks/adonisjs.ts
@@ -20,12 +20,10 @@ await app.init()
20
const encryption = new Encryption({ secret: 'averylongrandom32charslongsecret' })
21
22
const server = new Server(app, encryption, defineConfig({}))
23
-
24
-server.use([], [], {})
25
26
-server.getRouter()!.get('/', async (ctx) => {
+server.getRouter().get('/', async (ctx) => {
27
return ctx.response.send({ hello: 'world' })
28
})
+
29
await server.boot()
30
31
createServer(server.handle.bind(server)).listen(4000, () => {
0 commit comments