问题描述
我正在使用Nodejs的快速框架来开发Web应用程序。我知道我可以使用POSTMAN来测试Http的发布方法。但是我想知道如果我在repl.it中运行程序如何测试post方法 以下是我的代码。
express = require('express') //
app = express()
app.listen(3000,function(req,res){
console.log("web server is running on port 3000")
})
app.get('/',res){
res.send('Hello world')
})
app.post('/AddStudent',res){
res.send("Post is executed ")
})
我了解当我在repl.it上默认运行它时,它将运行get方法。但是我想知道在repl.it上运行上述程序时如何运行和测试POST方法。
谢谢
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)