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,
I assume I'm doing something wrong here… Here is my app.js:
app.js
var server = require('json-server') var app = server({ schemas: [] }, 'db.json') app.use(function (req, res, next) { console.log('Time:', Date.now()); next(); }) app.listen(process.env.PORT || 3000)
This doesn't print anything to the terminal…
Thanks for your time.
The text was updated successfully, but these errors were encountered:
Hi Julien,
Even if you make a request? The API could get some enhancement, it's not very clear how server() work.
server()
Sorry, something went wrong.
Even when I make a request.
Forget about the "even if you make a request", I misunderstood your issue. I'll have a look into this.
Just read this issue and figured out how to mount json-server…
json-server
Sorry for bothering you.
No branches or pull requests
Hi,
I assume I'm doing something wrong here…
Here is my
app.js
:This doesn't print anything to the terminal…
Thanks for your time.
The text was updated successfully, but these errors were encountered: