Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

incorrect path depth #10

Closed
crobinson42 opened this issue Aug 22, 2016 · 1 comment
Closed

incorrect path depth #10

crobinson42 opened this issue Aug 22, 2016 · 1 comment
Assignees
Labels

Comments

@crobinson42
Copy link

The correct path is not being parsed on multi-level baseRoute, ie:

const express = require('express')
const router = express.Router()

router.route('/my/path').get(()=>{ /* someMethod() */ })

app.use("/api/multi/level", router)

will output:

[ { path: '/api/my/path',
    methods: [ 'GET' ] } ]

the output path ^^^^ is incorrect - and the endpoint /api/multi/level/my/path DOES exist when starting up the server and hitting it in the browser.

@AlbertoFdzM
Copy link
Owner

Right! I didn't cover that use case.

Will work on it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants