Relative Content

Tag Archive for javascriptnode.jsexpress

express.js not sending response

In the following code, I’m forcing an error. GOT error is printed on console so the program is going in catch block, but express never sends a response with statusCode 500.

How do I get descriptor for JavaScript class constructor function?

Is it possible for me to get the descriptor for the actual constructor method of a JS class? I am writing my own little wrapper around Express to try and procedurally generate routes and stuff (and I am sure there are plenty of other libraries to do this, but it’s a learning experience).

getting 404 not found error when nesting routes in express js

I’m working on rest api for my application and I have problem with nesting routes in express. I have nested routes and when I try to send request to nested url express sends back 404 not found.
index for all api routes (src/routes/index.ts):