You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
varexpress=require('express');varapp=express();app.get('/user/:id',function(request,response){varid=request.params.id;response.send("User id is "+id);});app.listen(3000,()=>console.log(`App listening on port 3000`))
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:The text was updated successfully, but these errors were encountered: