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
Hi, since there's no example, could you tell me where I went wrong
const express = require('express'); const spaRouter = require('express-spa-router'); const app = express(); const port = 3000; app.get('/', (req, res) => res.send('Hello World!')); app.use((spaRouter)(app, { ignore: ['api'], noRoute: function(req, res, next) { res.redirect('/'); } })); app.get('/api', (req, res) => res.send({ hello: 'world' })); app.listen(port, () => console.log(`Example app listening on port ${port}!`));
It seems like (2) should return 'hello world'.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi, since there's no example, could you tell me where I went wrong
It seems like (2) should return 'hello world'.
The text was updated successfully, but these errors were encountered: