See documentation at https://github.com/typestack/routing-controllers
Questions tagged [routing-controllers]
20 questions
0
votes
1 answer
TypeError: Reflect.getMetadata is not a function When using Node.JS routing-controller
I am getting the following error. Can anyone please help
D:\Learning\Node\r-controller\node_modules\src\metadata\ParamMetadata.ts:120
const ParamTypes = (Reflect as any).getMetadata('design:paramtypes', args.object, args.method);
^
TypeError:…

Jenish MS
- 357
- 2
- 13
0
votes
0 answers
Document an Express API POST method with routing-controllers-openapi
I am using routing-controllers-openapi to document an API and I am facing a problem to show the body from a request as parameter in the Swagger UI.
The controller is implemented this way:
@HttpCode(201)
@OpenAPI({
description: 'Create a new…

Christian Benseler
- 7,907
- 8
- 40
- 71
0
votes
0 answers
Expression expected & ':' expected
I'm trying to figure out why this code:
const extractJWT = (req: Request, res: Response, next: NextFunction) => {
logging.info(NAMESPACE, "Validating Token");
let token = req.headers.authorization?.split(" ")[1];
if (token) {
…

codestomping
- 133
- 1
- 6
0
votes
1 answer
Problem with controllers and routing using asp.net core
Im new to asp.net Core and i've stumbled upon problem with my routing/Controller. Not sure which one is faulty. Overall I don't know how to set up multiple controllers for multiple .cshtml files which will allow me to move between pages or do simple…

Luke
- 11
- 6
0
votes
1 answer
How to handle a request with one element in a query param array
I am using this boilerplate for my api.
I have the following route: GET /questions
In this route I wan't to dynamically get the relations in the data, for example GET /questions?relations=user?relations=answer. This works just fine, but when I wan't…

Gion Rubitschung
- 741
- 11
- 31