Req.route()
#4823
Replies: 1 comment 1 reply
-
Hey there! So { path: '/post',
stack:
[ { handle: [Function: postIdHandler],
name: 'postIdHandler',
params: undefined,
path: undefined,
keys: [],
regexp: /^\/?$/i,
method: 'get' } ],
methods: { get: true } } This shows the details of the path, route handler, its name, methods, params. Although it's not used on a daily basis, |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi
i am new at express and i went throught the documentation andi want to know what are the main usage of the req.route() in express it only gives me information about the route nothing else but what can i use it in real life
Beta Was this translation helpful? Give feedback.
All reactions