adrema/routes/web.php

74 lines
4.5 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;
2022-10-28 12:01:04 +02:00
use App\Efz\ShowEfzDocumentAction;
2022-11-17 02:15:29 +01:00
use App\Home\Actions\IndexAction as HomeIndexAction;
2022-08-31 00:33:36 +02:00
use App\Initialize\Actions\InitializeAction;
use App\Initialize\Actions\InitializeFormAction;
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;
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;
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 {
2022-11-17 02:15:29 +01:00
Route::get('/', HomeIndexAction::class)->name('home');
2023-02-26 20:51:59 +01:00
Route::post('/api/member/search', SearchAction::class)->name('member.search');
2022-08-31 00:33:36 +02:00
Route::get('/initialize', InitializeFormAction::class)->name('initialize.form');
Route::post('/initialize', InitializeAction::class)->name('initialize.store');
2022-11-18 15:55:44 +01:00
Route::resource('member', MemberController::class)->except('show');
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-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');
2020-04-10 20:32:12 +02:00
});