adrema/routes/web.php

56 lines
3.2 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-14 14:27:11 +01:00
use App\Activity\Actions\IndexAction as ActivityIndexAction;
2022-11-17 21:47:45 +01:00
use App\Contribution\Actions\FormAction as ContributionFormAction;
2022-05-17 01:37:07 +02:00
use App\Contribution\ContributionController;
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;
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');
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');
2022-11-17 21:47:45 +01:00
Route::get('/contribution', ContributionFormAction::class)->name('contribution.form');
2022-05-17 01:37:07 +02:00
Route::get('/contribution/generate', [ContributionController::class, 'generate'])->name('contribution.generate');
2023-02-14 14:27:11 +01:00
Route::get('/activity', ActivityIndexAction::class)->name('activity.index');
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');
2020-04-10 20:32:12 +02:00
});