Checks of the owner and the existence of the resource in the middleware to avoid repeating itself in the controller?

前端 未结 0 1798
广开言路
广开言路 2021-01-07 04:14

In my Slim 4 API, I have a group of routes which manages vehicles (= resource). Overall they look like this:

  • GET /api/v1/vehicles/{id}
相关标签:
回答
  • 消灭零回复
提交回复
热议问题