We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Coming back to polka after a few years I have problems mounting sub-apps which was easy to do in koa.
I'd like to have these URLs:
/app/:appid/client/:clientid
where a middleware extracts the proper req.app from the appid and another middleware extracts req.client from clientid
req.app
appid
req.client
clientid
My sub-apps I structured like this:
const client = polka() .use(req, res, next) => { req.client = getClient(req.params.clientid) next() }) .get("/", ...) const app = polka() .use((req, res, next) => { req.app = getApp(req.params.appid) next() }) .get("/", ...) .use("client", client)
but the URL mentioned about does end up in 404.
btw: do you want to enable "Discussions" here so we don't use issues for simple Q&A?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Coming back to polka after a few years I have problems mounting sub-apps which was easy to do in koa.
I'd like to have these URLs:
/app/:appid/client/:clientid
where a middleware extracts the proper
req.app
from theappid
and another middleware extractsreq.client
fromclientid
My sub-apps I structured like this:
but the URL mentioned about does end up in 404.
btw: do you want to enable "Discussions" here so we don't use issues for simple Q&A?
The text was updated successfully, but these errors were encountered: