-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Labels
Description
In the documentation about route parameters ( https://loopback.io/doc/en/lb4/Routes.html#parameters ) it is mentioned "form Data". However, no where we can see a use of it. And right now, I'm unable to catch any submitted data from the form.
In my case, in the sequence, the call of this.parseParams(request, route) return an array of undefined values. So obviously I'm missing something, and document it would be great !
Exemple :
export class RegistrationController {
// stuff
@post('/register', {
responses: {
'200': {
description: 'Registration information page',
content: {'text/html': {schema: {type: 'string'}}},
},
},
})
create(
@param.query.string('email') email: string,
@param.query.string('password') password: string,
): Promise<string> {
// email & password are empty
}
}Reactions are currently unavailable