So I'm trying to make a simple HTTP module, similar to express, to help learn how to use HTTP. When working with express I often use parameters, (ex) app.get('/id/:id' (req, res) => {console.log(req.params.id); stuff})
. So I was wondering for one if it is possible just using HTTP, and for two, if it isn't able to be done with just HTTP, then how would you go about creating it?
- 积分
0 - 话题
0 - 评论
3148 - 注册排名
2308
代替路由参数,请使用查询参数。
Get Query Strings and Parameters in Express.js