Loheide-eu-mitarbeiterplatt.../plugins-core/stellen/routes/web.php
Friederich Loheide 993d49c99c
Some checks failed
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 6m18s
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 7m1s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 5m33s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 5m8s
CI / PHP 8.3 / mysql:8.0 (pull_request) Failing after 6m42s
CI / PHP 8.4 / mysql:8.0 (pull_request) Failing after 6m37s
CI / PHP 8.3 / mysql:8.4 (pull_request) Failing after 5m43s
CI / PHP 8.4 / mysql:8.4 (pull_request) Failing after 5m38s
CI / Build-Artefakte aktuell (pull_request) Successful in 1m10s
Neues Modul Interne Stellenausschreibungen (0.28.0)
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-27 10:16:48 +00:00

27 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::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');
});
});