Move Api routes
This commit is contained in:
parent
ff6c2bbc2c
commit
de76e195e7
|
@ -1,5 +1,11 @@
|
|||
<?php
|
||||
|
||||
use App\Contribution\Actions\GenerateApiAction as ContributionGenerateApiAction;
|
||||
use App\Form\Actions\FormApiListAction;
|
||||
use App\Form\Actions\RegisterAction;
|
||||
use App\Group\Actions\GroupApiIndexAction;
|
||||
|
||||
Route::post('/contribution-generate', ContributionGenerateApiAction::class)->name('api.contribution.generate')->middleware('client:contribution-generate');
|
||||
Route::post('/form/{form}/register', RegisterAction::class)->name('form.register');
|
||||
Route::get('/group/{group?}', GroupApiIndexAction::class)->name('api.group');
|
||||
Route::get('/form', FormApiListAction::class)->name('api.form.index');
|
||||
|
|
|
@ -30,7 +30,6 @@ use App\Form\Actions\FormtemplateIndexAction;
|
|||
use App\Form\Actions\FormtemplateStoreAction;
|
||||
use App\Form\Actions\FormtemplateUpdateAction;
|
||||
use App\Form\Actions\FormUpdateAction;
|
||||
use App\Form\Actions\RegisterAction;
|
||||
use App\Initialize\Actions\InitializeAction;
|
||||
use App\Initialize\Actions\InitializeFormAction;
|
||||
use App\Initialize\Actions\NamiGetSearchLayerAction;
|
||||
|
@ -157,8 +156,4 @@ Route::group(['middleware' => 'auth:web'], function (): void {
|
|||
Route::post('/formtemplate', FormtemplateStoreAction::class)->name('formtemplate.store');
|
||||
Route::patch('/formtemplate/{formtemplate}', FormtemplateUpdateAction::class)->name('formtemplate.update');
|
||||
Route::post('/form', FormStoreAction::class)->name('form.store');
|
||||
Route::post('/form/{form}/register', RegisterAction::class)->name('form.register');
|
||||
});
|
||||
|
||||
Route::get('/api/group/{group?}', GroupApiIndexAction::class)->name('api.group');
|
||||
Route::get('/api/form', FormApiListAction::class)->name('api.form.index');
|
||||
|
|
Loading…
Reference in New Issue