Fixes for cors (#3061)
This commit is contained in:
parent
6c089f994b
commit
fd8242330e
1 changed files with 2 additions and 2 deletions
|
|
@ -25,14 +25,14 @@ Route::group(['middleware' => ['api_secret_check']], function () {
|
|||
|
||||
});
|
||||
|
||||
Route::group(['api_secret_check','domain_db'], function () {
|
||||
Route::group(['api_secret_check','domain_db','cors'], function () {
|
||||
|
||||
Route::post('api/v1/login', 'Auth\LoginController@apiLogin')->name('login.submit');
|
||||
Route::post('api/v1/reset_password', 'Auth\ForgotPasswordController@sendResetLinkEmail')->name('password.reset');
|
||||
|
||||
});
|
||||
|
||||
Route::group(['middleware' => ['api_db','api_secret_check','token_auth'], 'prefix' =>'api/v1', 'as' => 'api.'], function () {
|
||||
Route::group(['middleware' => ['api_db','api_secret_check','token_auth','cors'], 'prefix' =>'api/v1', 'as' => 'api.'], function () {
|
||||
|
||||
Route::resource('activities', 'ActivityController'); // name = (clients. index / create / show / update / destroy / edit
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue