adrema/routes/web.php

186 lines
12 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;
2023-10-18 01:11:36 +02:00
use App\Course\Actions\CourseDestroyAction;
use App\Course\Actions\CourseIndexAction;
use App\Course\Actions\CourseStoreAction;
2023-12-13 00:35:39 +01:00
use App\Invoice\Actions\InvoiceStoreAction;
2023-10-18 01:11:36 +02:00
use App\Course\Actions\CourseUpdateAction;
2022-10-28 12:01:04 +02:00
use App\Efz\ShowEfzDocumentAction;
2024-06-27 18:04:58 +02:00
use App\Fileshare\Actions\FileshareApiIndexAction;
2024-06-27 12:48:20 +02:00
use App\Fileshare\Actions\FileshareStoreAction;
use App\Fileshare\Actions\FileshareUpdateAction;
2024-06-28 23:56:34 +02:00
use App\Fileshare\Actions\ListFilesAction;
2024-05-27 21:08:09 +02:00
use App\Form\Actions\ExportAction as ActionsExportAction;
2024-01-01 18:29:33 +01:00
use App\Form\Actions\FormDestroyAction;
2023-12-31 22:35:13 +01:00
use App\Form\Actions\FormIndexAction;
2023-12-30 02:02:07 +01:00
use App\Group\Actions\GroupBulkstoreAction;
use App\Group\Actions\GroupIndexAction;
2023-12-28 00:32:48 +01:00
use App\Form\Actions\FormStoreAction;
2024-02-19 03:01:18 +01:00
use App\Form\Actions\FormtemplateDestroyAction;
2023-12-22 20:40:24 +01:00
use App\Form\Actions\FormtemplateIndexAction;
use App\Form\Actions\FormtemplateStoreAction;
2023-12-25 22:51:07 +01:00
use App\Form\Actions\FormtemplateUpdateAction;
2024-01-01 18:29:33 +01:00
use App\Form\Actions\FormUpdateAction;
2024-02-21 23:43:25 +01:00
use App\Form\Actions\FormUpdateMetaAction;
2024-04-18 22:15:28 +02:00
use App\Form\Actions\IsDirtyAction;
2024-07-02 18:04:55 +02:00
use App\Form\Actions\ParticipantAssignAction;
2024-04-25 21:49:31 +02:00
use App\Form\Actions\ParticipantDestroyAction;
2024-07-12 19:49:47 +02:00
use App\Form\Actions\ParticipantFieldsAction;
2024-02-08 21:04:00 +01:00
use App\Form\Actions\ParticipantIndexAction;
2024-07-13 18:24:43 +02:00
use App\Form\Actions\ParticipantStoreAction;
2024-07-12 20:15:24 +02:00
use App\Form\Actions\ParticipantUpdateAction;
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-12-17 22:33:29 +01:00
use App\Invoice\Actions\DisplayPdfAction;
2023-12-18 00:16:58 +01:00
use App\Invoice\Actions\DisplayRememberpdfAction;
2023-12-17 00:55:31 +01:00
use App\Invoice\Actions\InvoiceDestroyAction;
2023-12-16 01:13:49 +01:00
use App\Invoice\Actions\InvoiceIndexAction;
2023-12-17 00:45:03 +01:00
use App\Invoice\Actions\InvoiceUpdateAction;
2023-12-19 02:00:42 +01:00
use App\Invoice\Actions\MassPostPdfAction;
2023-12-30 02:02:07 +01:00
use App\Invoice\Actions\MassStoreAction as InvoiceMassStoreAction;
2024-02-10 01:42:51 +01:00
use App\Invoice\Actions\MemberNewInvoiceAction;
2023-12-17 21:13:52 +01:00
use App\Invoice\Actions\PaymentPositionIndexAction;
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-10-16 12:52:59 +02:00
use App\Membership\Actions\IndexAction as MembershipIndexAction;
2023-10-16 12:36:56 +02:00
use App\Membership\Actions\ListForGroupAction;
2023-12-30 02:02:07 +01:00
use App\Membership\Actions\MassListAction;
use App\Membership\Actions\MassStoreAction;
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;
2021-07-04 01:44:41 +02:00
use App\Payment\SubscriptionController;
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-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');
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');
2021-07-04 01:44:41 +02:00
Route::resource('subscription', SubscriptionController::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');
2023-10-13 15:48:29 +02:00
Route::post('/api/member/search', SearchAction::class)->name('member.search');
// ------------------------------- 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
2023-10-13 15:48:29 +02:00
// -------------------------------- allpayment ---------------------------------
2023-12-30 02:02:07 +01:00
Route::post('/invoice/mass-store', InvoiceMassStoreAction::class)->name('invoice.mass-store');
2023-12-13 00:35:39 +01:00
// ---------------------------------- invoice ----------------------------------
2023-12-16 01:13:49 +01:00
Route::get('/invoice', InvoiceIndexAction::class)->name('invoice.index');
2023-12-13 00:35:39 +01:00
Route::post('/invoice', InvoiceStoreAction::class)->name('invoice.store');
2023-12-17 00:45:03 +01:00
Route::patch('/invoice/{invoice}', InvoiceUpdateAction::class)->name('invoice.update');
2023-12-17 00:55:31 +01:00
Route::delete('/invoice/{invoice}', InvoiceDestroyAction::class)->name('invoice.destroy');
2023-12-17 22:33:29 +01:00
Route::get('/invoice/{invoice}/pdf', DisplayPdfAction::class)->name('invoice.pdf');
2023-12-18 00:16:58 +01:00
Route::get('/invoice/{invoice}/rememberpdf', DisplayRememberpdfAction::class)->name('invoice.rememberpdf');
2023-12-19 02:00:42 +01:00
Route::get('/invoice/masspdf', MassPostPdfAction::class)->name('invoice.masspdf');
2024-02-11 20:21:33 +01:00
Route::post('/invoice/new-invoice-attributes', MemberNewInvoiceAction::class)->name('invoice.new-invoice-attributes');
2023-12-13 00:35:39 +01:00
2023-12-17 21:13:52 +01:00
// ----------------------------- invoice-position ------------------------------
Route::get('/member/{member}/invoice-position', PaymentPositionIndexAction::class)->name('member.invoice-position.index');
2023-10-13 15:48:29 +02:00
// --------------------------------- membership --------------------------------
2023-10-16 12:52:59 +02:00
Route::get('/member/{member}/membership', MembershipIndexAction::class)->name('member.membership.index');
2023-10-13 15:48:29 +02:00
Route::post('/member/{member}/membership', MembershipStoreAction::class)->name('member.membership.store');
Route::patch('/membership/{membership}', MembershipUpdateAction::class)->name('membership.update');
Route::delete('/membership/{membership}', MembershipDestroyAction::class)->name('membership.destroy');
2023-10-16 12:36:56 +02:00
Route::post('/api/membership/member-list', ListForGroupAction::class)->name('membership.member-list');
2023-12-30 02:02:07 +01:00
Route::post('/api/membership/masslist', MassStoreAction::class)->name('membership.masslist.store');
Route::get('/membership/masslist', MassListAction::class)->name('membership.masslist.index');
// ----------------------------------- group ----------------------------------
Route::get('/group', GroupIndexAction::class)->name('group.index');
Route::post('/group/bulkstore', GroupBulkstoreAction::class)->name('group.bulkstore');
2023-10-18 01:11:36 +02:00
// ----------------------------------- course ----------------------------------
Route::get('/member/{member}/course', CourseIndexAction::class)->name('member.course.index');
Route::post('/member/{member}/course', CourseStoreAction::class)->name('member.course.store');
Route::patch('/course/{course}', CourseUpdateAction::class)->name('course.update');
Route::delete('/course/{course}', CourseDestroyAction::class)->name('course.destroy');
2023-12-22 20:40:24 +01:00
// ------------------------------------ form -----------------------------------
Route::get('/formtemplate', FormtemplateIndexAction::class)->name('formtemplate.index');
2024-05-27 21:08:09 +02:00
Route::get('/form/{form}/export', ActionsExportAction::class)->name('form.export');
2023-12-31 22:35:13 +01:00
Route::get('/form', FormIndexAction::class)->name('form.index');
2024-01-01 18:29:33 +01:00
Route::patch('/form/{form}', FormUpdateAction::class)->name('form.update');
Route::delete('/form/{form}', FormDestroyAction::class)->name('form.destroy');
2023-12-22 20:40:24 +01:00
Route::post('/formtemplate', FormtemplateStoreAction::class)->name('formtemplate.store');
2023-12-25 22:51:07 +01:00
Route::patch('/formtemplate/{formtemplate}', FormtemplateUpdateAction::class)->name('formtemplate.update');
2024-02-19 03:01:18 +01:00
Route::delete('/formtemplate/{formtemplate}', FormtemplateDestroyAction::class)->name('formtemplate.destroy');
2023-12-28 00:32:48 +01:00
Route::post('/form', FormStoreAction::class)->name('form.store');
2024-02-21 23:43:25 +01:00
Route::patch('/form/{form}/meta', FormUpdateMetaAction::class)->name('form.update-meta');
Route::get('/form/{form}/participants/{parent?}', ParticipantIndexAction::class)->name('form.participant.index');
2024-04-18 22:15:28 +02:00
Route::post('/form/{form}/is-dirty', IsDirtyAction::class)->name('form.is-dirty');
2024-04-25 21:49:31 +02:00
Route::delete('/participant/{participant}', ParticipantDestroyAction::class)->name('participant.destroy');
2024-07-02 18:04:55 +02:00
Route::post('/participant/{participant}/assign', ParticipantAssignAction::class)->name('participant.assign');
2024-07-12 19:49:47 +02:00
Route::get('/participant/{participant}/fields', ParticipantFieldsAction::class)->name('participant.fields');
2024-07-12 20:15:24 +02:00
Route::patch('/participant/{participant}', ParticipantUpdateAction::class)->name('participant.update');
2024-07-13 18:24:43 +02:00
Route::post('/form/{form}/participant', ParticipantStoreAction::class)->name('form.participant.store');
2024-06-27 00:19:12 +02:00
// ------------------------------------ fileshare -----------------------------------
2024-06-27 12:48:20 +02:00
Route::post('/fileshare', FileshareStoreAction::class)->name('fileshare.store');
Route::patch('/fileshare/{fileshare}', FileshareUpdateAction::class)->name('fileshare.update');
2024-06-27 18:04:58 +02:00
Route::get('/api/fileshare', FileshareApiIndexAction::class)->name('api.fileshare.index');
2024-06-28 23:56:34 +02:00
Route::post('/api/fileshare/{fileshare}/files', ListFilesAction::class)->name('api.fileshare.files');
2020-04-10 20:32:12 +02:00
});