Update middleware.md

This commit is contained in:
Zhou 2022-11-06 13:48:09 +08:00 committed by GitHub
parent 54e6b786d0
commit 9f3c55fae9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -57,7 +57,7 @@ app.use(async (ctx, next) => {
3. `acl`
1. `acl.use()` 添加的其他中间件
4. `resourcer.use()` 添加的其他中间件
5. action handler
5. `action handler`
7. `app.use()` 添加的其他中间件
也可以使用 `before``after` 将中间件插入到前面的某个 `tag` 标记的位置,如: