Set the API middlewares on the new router instance.
Set the API middlewares on the new router instance.

We will also grab any defined route middlewares from the Laravel router
and set them on the new router instance as well.

laravie/api,thilanga/api,thaonx/dingo-api,behzadsh/api,rlacerda83/api,dingo/api,lucasmichot/api,thaonx1990/dingo-api,teleright/api