themosis / framework

The Themosis framework core.
https://framework.themosis.com/
GNU General Public License v2.0
671 stars 121 forks source link

Custom prefix routes in RouteServiceProvider.php #887

Open mhsilva555 opened 1 year ago

mhsilva555 commented 1 year ago

I added a custom prefix to my api's routes. But the answer is always 404.

Code:

Route::prefix('api/v1') ->middleware('api') ->namespace($this->namespace) ->group(base_path('routes/api/v1/api.php'));

File Endpoints: routes/api/v1/api.php Code:

Route::get('custom-endpoint', function () { wp_send_json( 200 ); });

Return: Sorry, the page you are looking for could not be found