So I am developing a custom package and I want to add in some API routes. So in my package I have an src/routes/api.php (mimicking the laravel layout)
So the routes are not being prefix by the /api/{{route}}
I was wondering if there is anyway that this is 'supposed' to be done other than just setting a 'prefix' => 'api' and 'middleware' => 'api' on the route group wrapping the routes.
Yeah I mean that works. Its just odd that I need to prefix the api onto the route. The routes from the api.php file all already have the /api/ prefix applied. I was thinking there may be some way to configure that to happen in my laravel package.
I ended up just doing what you did with the prefix '/api/v1/'