Open jebarpg opened 7 months ago
using live-server /public then opening http://127.0.0.1:8080/user/1 returns a GET /user/1 404 error
using node.js code
server.js
var express = require('express'); var app = express(); app.get('/user/:id', function(request, response){ var id = request.params.id; response.send("User id is " + id); }); app.listen(3000, () => console.log(`App listening on port 3000`))
run node server.js then in different terminal same directory run live-server http://127.0.0.1:8080/user/1 does not work http://127.0.0.1:3000/user/1 works
live-server
Before submitting an issue, please, see https://github.com/tapio/live-server#troubleshooting
Issue description
using live-server /public then opening http://127.0.0.1:8080/user/1 returns a GET /user/1 404 error
using node.js code
server.js
run node server.js then in different terminal same directory run live-server http://127.0.0.1:8080/user/1 does not work http://127.0.0.1:3000/user/1 works
Software details
live-server
:live-server
version: