-
-
Notifications
You must be signed in to change notification settings - Fork 37
Closed
Labels
Good First IssueWant to contribute? Just filter by this labelWant to contribute? Just filter by this labelStatus: AbandonedDropped and not into considerationDropped and not into consideration
Description
Package version
6.12.1
Describe the bug
Apparently named middleware are not working, when .use one it sends a 200 Ok, empty response.
Steps to reproduce are pretty minimal/small:
npm init adonisjs@latest adonis-slim-kit -- --kit=slimnode ace make:middleware foobar --stack=named- Edit
start/routes.tsto use the middleware:
import router from '@adonisjs/core/services/router'
import { middleware } from '#start/kernel'
router.get('/', async () => 'It works!').use(middleware.foobar)"It works" is never sent (empty response, only 200 Ok), and removing .use(middleware.foobar) make it work again.
Metadata
Metadata
Assignees
Labels
Good First IssueWant to contribute? Just filter by this labelWant to contribute? Just filter by this labelStatus: AbandonedDropped and not into considerationDropped and not into consideration