themosis / framework

The Themosis framework core.

Home Page:https://framework.themosis.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Custom prefix routes in RouteServiceProvider.php

mhsilva555 opened this issue · comments

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