Open mhsilva555 opened 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
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