(get,post)http://127.0.0.1:3000/api (get:id,put,delete)http://127.0.0.1:3000/api/:id ----为了方便测试我加了跨域处理,如不需要,可在app.js里面自行删除