search

Home  >  Q&A  >  body text

node.js - 关于express的路由路径问题

阿神阿神2873 days ago334

reply all(2)I'll reply

  • 迷茫

    迷茫2017-04-17 15:44:44

    Thanks for the invitation. Add app.get('./apps')

    app.get('./apps')

    你的路由用的是post方法,然后你的请求是get,肯定对不上啊。如果想偷懒,或者这个接口比较简单,直接app.all('./apps')Your routing uses the post method, and your request is get, which is definitely not correct. If you want to be lazy, or the interface is relatively simple, just app.all('./apps')

    reply
    0
  • 怪我咯

    怪我咯2017-04-17 15:44:44

    Could you please tell me that there is a post processing handler for registration/apps?
    What is a non-existent path?

    reply
    0
  • Cancelreply