adrema/routes/web.php

110 lines
6.8 KiB
PHP
Raw Normal View History

2021-07-15 21:17:48 +02:00
<?php
2020-04-10 20:32:12 +02:00
2023-02-15 01:36:59 +01:00
use App\Activity\Actions\ActivityStoreAction;
2023-02-17 01:50:44 +01:00
use App\Activity\Actions\ActivityUpdateAction;
2023-02-25 18:00:23 +01:00
use App\Activity\Actions\CreateAction as ActivityCreateAction;
2023-02-25 17:19:17 +01:00
use App\Activity\Actions\DestroyAction as ActivityDestroyAction;
2023-03-04 12:02:17 +01:00
use App\Activity\Actions\EditAction as ActivityEditAction;
use App\Activity\Actions\IndexAction as ActivityIndexAction;
2023-03-07 01:35:39 +01:00
use App\Activity\Api\SubactivityShowAction;
2023-03-04 12:02:17 +01:00
use App\Activity\Api\SubactivityStoreAction;
2023-03-07 00:22:01 +01:00
use App\Activity\Api\SubactivityUpdateAction;
2022-11-17 21:47:45 +01:00
use App\Contribution\Actions\FormAction as ContributionFormAction;
use App\Contribution\Actions\GenerateAction as ContributionGenerateAction;
use App\Contribution\Actions\ValidateAction as ContributionValidateAction;
2021-11-19 22:58:27 +01:00
use App\Course\Controllers\CourseController;
2023-04-29 21:30:41 +02:00
use App\Dashboard\Actions\IndexAction as DashboardIndexAction;
2022-10-28 12:01:04 +02:00
use App\Efz\ShowEfzDocumentAction;
2023-08-25 00:23:38 +02:00
use App\Group\Actions\ListAction;
2022-08-31 00:33:36 +02:00
use App\Initialize\Actions\InitializeAction;
use App\Initialize\Actions\InitializeFormAction;
2023-05-18 01:13:28 +02:00
use App\Initialize\Actions\NamiGetSearchLayerAction;
2023-05-07 21:17:28 +02:00
use App\Initialize\Actions\NamiLoginCheckAction;
2023-05-07 21:15:17 +02:00
use App\Initialize\Actions\NamiSearchAction;
2023-06-13 22:03:32 +02:00
use App\Maildispatcher\Actions\CreateAction;
use App\Maildispatcher\Actions\DestroyAction;
use App\Maildispatcher\Actions\EditAction;
2023-06-13 22:03:32 +02:00
use App\Maildispatcher\Actions\IndexAction;
2023-06-12 13:12:46 +02:00
use App\Maildispatcher\Actions\StoreAction as MaildispatcherStoreAction;
use App\Maildispatcher\Actions\UpdateAction as MaildispatcherUpdateAction;
2023-06-01 15:45:02 +02:00
use App\Mailgateway\Actions\StoreAction;
2023-06-08 00:00:35 +02:00
use App\Mailgateway\Actions\UpdateAction;
2023-03-14 23:55:50 +01:00
use App\Member\Actions\ExportAction;
2023-08-15 23:03:51 +02:00
use App\Member\Actions\MemberDeleteAction;
2023-02-08 00:14:59 +01:00
use App\Member\Actions\MemberResyncAction;
2022-11-18 15:55:44 +01:00
use App\Member\Actions\MemberShowAction;
2023-02-26 20:51:59 +01:00
use App\Member\Actions\SearchAction;
2020-06-02 23:45:25 +02:00
use App\Member\MemberController;
2023-08-25 00:23:38 +02:00
use App\Membership\Actions\ApiListAction;
2022-11-16 23:39:44 +01:00
use App\Membership\Actions\MembershipDestroyAction;
use App\Membership\Actions\MembershipStoreAction;
2022-12-11 21:00:48 +01:00
use App\Membership\Actions\MembershipUpdateAction;
2023-08-25 00:23:38 +02:00
use App\Membership\Actions\SyncAction;
2022-12-14 15:49:12 +01:00
use App\Payment\Actions\AllpaymentPageAction;
use App\Payment\Actions\AllpaymentStoreAction;
2021-07-15 21:17:48 +02:00
use App\Payment\PaymentController;
2021-07-17 18:46:02 +02:00
use App\Payment\SendpaymentController;
2021-07-04 01:44:41 +02:00
use App\Payment\SubscriptionController;
2021-07-15 21:17:48 +02:00
use App\Pdf\MemberPdfController;
2020-04-12 00:26:44 +02:00
2022-03-20 16:33:56 +01:00
Route::group(['namespace' => 'App\\Http\\Controllers'], function (): void {
2020-04-12 00:26:44 +02:00
Auth::routes(['register' => false]);
});
2020-04-10 20:32:12 +02:00
2021-07-17 18:46:02 +02:00
Route::group(['middleware' => 'auth:web'], function (): void {
2023-04-29 21:30:41 +02:00
Route::get('/', DashboardIndexAction::class)->name('home');
2023-05-07 21:17:28 +02:00
Route::post('/nami/login-check', NamiLoginCheckAction::class)->name('nami.login-check');
2023-05-18 01:13:28 +02:00
Route::post('/nami/get-search-layer', NamiGetSearchLayerAction::class)->name('nami.get-search-layer');
2023-05-07 21:15:17 +02:00
Route::post('/nami/search', NamiSearchAction::class)->name('nami.search');
2023-02-26 20:51:59 +01:00
Route::post('/api/member/search', SearchAction::class)->name('member.search');
2023-08-25 00:23:38 +02:00
Route::post('/api/membership/member-list', ApiListAction::class)->name('membership.member-list');
Route::post('/api/membership/sync', SyncAction::class)->name('membership.sync');
2022-08-31 00:33:36 +02:00
Route::get('/initialize', InitializeFormAction::class)->name('initialize.form');
Route::post('/initialize', InitializeAction::class)->name('initialize.store');
2023-08-15 23:03:51 +02:00
Route::resource('member', MemberController::class)->except('show', 'destroy');
Route::delete('/member/{member}', MemberDeleteAction::class);
2022-11-18 15:55:44 +01:00
Route::get('/member/{member}', MemberShowAction::class)->name('member.show');
2022-11-07 16:18:11 +01:00
Route::apiResource('member.payment', PaymentController::class);
2022-12-14 15:49:12 +01:00
Route::get('allpayment', AllpaymentPageAction::class)->name('allpayment.page');
Route::post('allpayment', AllpaymentStoreAction::class)->name('allpayment.store');
2021-07-04 01:44:41 +02:00
Route::resource('subscription', SubscriptionController::class);
2021-07-16 00:12:19 +02:00
Route::get('/member/{member}/pdf', MemberPdfController::class)
->name('member.singlepdf');
2021-07-17 18:46:02 +02:00
Route::get('/sendpayment', [SendpaymentController::class, 'create'])->name('sendpayment.create');
Route::get('/sendpayment/pdf', [SendpaymentController::class, 'send'])->name('sendpayment.pdf');
2022-11-16 23:39:44 +01:00
Route::post('/member/{member}/membership', MembershipStoreAction::class)->name('membership.store');
2022-12-11 21:00:48 +01:00
Route::patch('/member/{member}/membership/{membership}', MembershipUpdateAction::class)->name('membership.store');
2022-11-16 23:39:44 +01:00
Route::delete('/member/{member}/membership/{membership}', MembershipDestroyAction::class)->name('membership.destroy');
2021-11-19 22:58:27 +01:00
Route::resource('member.course', CourseController::class);
2022-10-28 12:01:04 +02:00
Route::get('/member/{member}/efz', ShowEfzDocumentAction::class)->name('efz');
2023-02-08 00:14:59 +01:00
Route::get('/member/{member}/resync', MemberResyncAction::class)->name('member.resync');
2023-03-14 23:55:50 +01:00
Route::get('member-export', ExportAction::class)->name('member-export');
2023-02-14 14:27:11 +01:00
Route::get('/activity', ActivityIndexAction::class)->name('activity.index');
2023-02-25 17:19:17 +01:00
Route::get('/activity/{activity}/edit', ActivityEditAction::class)->name('activity.edit');
2023-02-25 18:00:23 +01:00
Route::get('/activity/create', ActivityCreateAction::class)->name('activity.create');
2023-02-15 01:36:59 +01:00
Route::post('/activity', ActivityStoreAction::class)->name('activity.store');
2023-02-17 01:50:44 +01:00
Route::patch('/activity/{activity}', ActivityUpdateAction::class)->name('activity.update');
2023-02-25 17:19:17 +01:00
Route::delete('/activity/{activity}', ActivityDestroyAction::class)->name('activity.destroy');
2023-03-04 12:02:17 +01:00
Route::post('/subactivity', SubactivityStoreAction::class)->name('api.subactivity.store');
2023-03-07 00:22:01 +01:00
Route::patch('/subactivity/{subactivity}', SubactivityUpdateAction::class)->name('api.subactivity.update');
2023-03-07 01:35:39 +01:00
Route::get('/subactivity/{subactivity}', SubactivityShowAction::class)->name('api.subactivity.show');
// ------------------------------- Contributions -------------------------------
Route::get('/contribution', ContributionFormAction::class)->name('contribution.form');
Route::get('/contribution-generate', ContributionGenerateAction::class)->name('contribution.generate');
Route::post('/contribution-validate', ContributionValidateAction::class)->name('contribution.validate');
2023-06-01 15:02:35 +02:00
2023-06-12 13:12:46 +02:00
// ----------------------------------- mail ------------------------------------
2023-06-07 21:39:41 +02:00
Route::post('/api/mailgateway', StoreAction::class)->name('mailgateway.store');
2023-06-08 00:00:35 +02:00
Route::patch('/api/mailgateway/{mailgateway}', UpdateAction::class)->name('mailgateway.update');
2023-06-13 22:03:32 +02:00
Route::get('/maildispatcher', IndexAction::class)->name('maildispatcher.index');
Route::get('/maildispatcher/create', CreateAction::class)->name('maildispatcher.create');
Route::get('/maildispatcher/{maildispatcher}', EditAction::class)->name('maildispatcher.edit');
Route::patch('/maildispatcher/{maildispatcher}', MaildispatcherUpdateAction::class)->name('maildispatcher.update');
2023-06-13 22:03:32 +02:00
Route::post('/maildispatcher', MaildispatcherStoreAction::class)->name('maildispatcher.store');
Route::delete('/maildispatcher/{maildispatcher}', DestroyAction::class)->name('maildispatcher.destroy');
2023-08-25 00:23:38 +02:00
// ----------------------------------- group -----------------------------------
Route::get('/group', ListAction::class)->name('group.index');
2020-04-10 20:32:12 +02:00
});