-
-
Notifications
You must be signed in to change notification settings - Fork 37
Closed
Labels
Status: AbandonedDropped and not into considerationDropped and not into considerationType: EnhancementImproving an existing featureImproving an existing feature
Description
Why this feature is required (specific use-cases will be appreciated)?
It's very convenient to use ES6's Object Destructuring in controllers:
...
public async register({
request: {
requestBody: { username, password },
},
response,
}: HttpContextContract) {
await UserService.create({ username, password })
response.status(204)
}
...Have you tried any other work arounds?
typings/Request.d.ts:
declare module '@ioc:Adonis/Core/Request' {
export interface RequestContract {
requestBody: Record<string, any>
}
}Are you willing to work on it with little guidance?
No
Metadata
Metadata
Assignees
Labels
Status: AbandonedDropped and not into considerationDropped and not into considerationType: EnhancementImproving an existing featureImproving an existing feature