You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To avoid this you can create one page that supply both the application access like an form to login/register and one button to reference the api documentation
Route::prefix('v1')->group(function () {
// all your routes need to be declare here
});
Route::prefix('v2')->group(function () {
// or here to access the v2 of your api
});
// or in both if you want segregate the resources or any other reason
How to do if I have two route types:
/*
andapi/*
in my Laravel Project ?I have two routes types in my Laravel Project:
/*
for user access dashboard andapi/*
for api access.If I do like this:
The url for
/api/*
is/api/api/*
.How fix it ?
Thx.
Jordan
The text was updated successfully, but these errors were encountered: