What is the proper way of connecting a router in an express server to handle any route “/” including root?

前端 未结 0 1641
伪装坚强ぢ
伪装坚强ぢ 2021-02-08 00:21

I have 3 express routers:

/api/admin   // IS HANDLED BY apiRouterAdmin
/api         // IS HANDLED BY apiRouter
/            // IS HANDLED BY appRouter (IT\'S A SI         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题