Loheide-eu-mitarbeiterplatt.../plugins-core/stellen/routes/web.php
Friederich Loheide cf5b71cdd9
Some checks failed
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 4m40s
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 4m27s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 5m6s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 5m14s
CI / PHP 8.3 / mysql:8.0 (pull_request) Failing after 6m55s
CI / PHP 8.4 / mysql:8.0 (pull_request) Failing after 6m54s
CI / PHP 8.3 / mysql:8.4 (pull_request) Failing after 6m59s
CI / PHP 8.4 / mysql:8.4 (pull_request) Failing after 6m57s
CI / Build-Artefakte aktuell (pull_request) Successful in 1m43s
Fehlerprotokoll im Systemzustand, Bilder in Stellen- und Terminbeschreibungen (0.28.1)
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-27 10:32:14 +00:00

28 lines
1.7 KiB
PHP

<?php
use Illuminate\Support\Facades\Route;
use Inhaus\Plugins\Stellen\Http\Controllers\JobController;
use Inhaus\Plugins\Stellen\Http\Controllers\JobEditorController;
Route::middleware('auth')->group(function () {
Route::prefix('stellen')->name('jobs.')->where(['posting' => '[0-9]+', 'application' => '[0-9]+'])->group(function () {
Route::get('/', [JobController::class, 'index'])->name('index');
Route::get('/meine-bewerbungen', [JobController::class, 'mine'])->name('mine');
Route::get('/{posting}', [JobController::class, 'show'])->name('show');
Route::get('/{posting}/ausschreibung.pdf', [JobController::class, 'pdf'])->name('pdf');
Route::post('/{posting}/bewerben', [JobController::class, 'apply'])->middleware('throttle:10,1')->name('apply');
Route::delete('/bewerbungen/{application}', [JobController::class, 'withdraw'])->name('withdraw');
Route::get('/bewerbungen/{application}/unterlagen', [JobController::class, 'file'])->name('applications.file');
});
Route::prefix('redaktion/stellen')->name('jobs.')->where(['posting' => '[0-9]+', 'application' => '[0-9]+'])->controller(JobEditorController::class)->group(function () {
Route::get('/neu', 'create')->name('create');
Route::post('/', 'store')->name('store');
Route::post('/bilder', 'uploadImage')->name('images');
Route::get('/{posting}', 'edit')->name('edit');
Route::post('/{posting}', 'update')->name('update'); // POST wegen PDF-Upload
Route::delete('/{posting}', 'destroy')->name('destroy');
Route::get('/{posting}/bewerbungen', 'applications')->name('applications');
Route::put('/bewerbungen/{application}', 'updateApplication')->name('applications.update');
});
});