From de76e195e7d827c6a02c7874ebc272724c559ab1 Mon Sep 17 00:00:00 2001 From: philipp lang Date: Thu, 8 Feb 2024 02:41:46 +0100 Subject: [PATCH] Move Api routes --- routes/api.php | 6 ++++++ routes/web.php | 5 ----- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/routes/api.php b/routes/api.php index f061076a..70730f99 100644 --- a/routes/api.php +++ b/routes/api.php @@ -1,5 +1,11 @@ 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'); diff --git a/routes/web.php b/routes/web.php index 4a45270a..fc3ed1b8 100644 --- a/routes/web.php +++ b/routes/web.php @@ -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');