express 一个js文件中写多个路由 然后使用

express写多个接口在一个文件 然后按层级调用

eg:

http://localhost:3000/api
http://localhost:3000/api/one
http://localhost:3000/api/second

操作

posted @ 2020-10-10 14:34  LC蜗牛  阅读(537)  评论(0)    收藏  举报