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
I got the following code
router.get('/', (req, res) => { res.status(200).send("/") }); router.get('/another', (req, res) => res.json({ route: req.originalUrl })); app.use(bodyParser.json()); app.use('/.netlify/functions/server', router); // path must route to lambda app.use('/', (req, res) => res.sendFile(path.join(__dirname, '../index.html'))); module.exports = app; module.exports.handler = serverless(app);
Locally it will always just return the / path og never /another
Any ideas why? :)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I got the following code
Locally it will always just return the / path og never /another
Any ideas why? :)
The text was updated successfully, but these errors were encountered: