Skip to content

Commit 86dfad4

Browse files
docs (middleware): Correct typo "serve.use" to "server.use" (#165)
`server.use` was mistakenly typed as `serve.use`. It was just bothering me since I discovered it.
1 parent ea3bf55 commit 86dfad4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/docs/basics/middleware.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Server middleware runs on every HTTP request, even if you have not defined any r
2020

2121
They are great for adding additional functionality to your app that does not rely on the routing system of the framework. For example, the Static assets middleware is registered as server middleware.
2222

23-
You can register server middleware using the `serve.use` method inside the `start/kernel.ts` file.
23+
You can register server middleware using the `server.use` method inside the `start/kernel.ts` file.
2424

2525
```ts
2626
import server from '@adonisjs/core/services/server'

0 commit comments

Comments
 (0)