adrema/routes/api.php

16 lines
885 B
PHP
Raw Normal View History

2023-05-17 00:22:43 +02:00
<?php
use App\Contribution\Actions\GenerateApiAction as ContributionGenerateApiAction;
2024-02-08 02:41:46 +01:00
use App\Form\Actions\FormApiListAction;
use App\Form\Actions\RegisterAction;
2024-07-04 21:01:14 +02:00
use App\Prevention\Actions\SettingStoreAction as PreventionStoreAction;
2024-02-08 02:41:46 +01:00
use App\Group\Actions\GroupApiIndexAction;
2024-07-04 21:01:14 +02:00
use App\Prevention\Actions\SettingApiAction;
2023-05-17 00:22:43 +02:00
Route::post('/contribution-generate', ContributionGenerateApiAction::class)->name('api.contribution.generate')->middleware('client:contribution-generate');
2024-02-08 02:41:46 +01:00
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');
2024-07-04 21:01:14 +02:00
Route::get('/prevention', SettingApiAction::class)->name('api.prevention.index');
Route::post('/prevention', PreventionStoreAction::class)->name('api.prevention.store');