Files
svc-essensplanung/config/routes.yaml
T

59 lines
1.4 KiB
YAML

# yaml-language-server: $schema=https://symfony.com/schema/config/routing/routing.yaml
home:
path: /
controller: App\UI\Http\HomeController::index
methods: [GET]
login:
path: /login
controller: App\UI\Http\Auth\OidcAuthController::login
methods: [GET]
auth_callback:
path: /auth/callback
controller: App\UI\Http\Auth\OidcAuthController::callback
methods: [GET]
logout:
path: /logout
controller: App\UI\Http\Auth\OidcAuthController::logout
methods: [GET, POST]
# M1: CRUD-Slice "Mahlzeit" (Web-UI, POST/Redirect/Flash)
mahlzeiten_index:
path: /mahlzeiten
controller: App\UI\Http\Essen\MahlzeitController::index
methods: [GET]
mahlzeiten_neu:
path: /mahlzeiten/neu
controller: App\UI\Http\Essen\MahlzeitController::neu
methods: [GET]
mahlzeiten_speichern:
path: /mahlzeiten
controller: App\UI\Http\Essen\MahlzeitController::speichern
methods: [POST]
mahlzeiten_bearbeiten:
path: /mahlzeiten/{id}/bearbeiten
controller: App\UI\Http\Essen\MahlzeitController::bearbeiten
methods: [GET]
requirements:
id: \d+
mahlzeiten_aktualisieren:
path: /mahlzeiten/{id}
controller: App\UI\Http\Essen\MahlzeitController::aktualisieren
methods: [POST]
requirements:
id: \d+
mahlzeiten_loeschen:
path: /mahlzeiten/{id}/loeschen
controller: App\UI\Http\Essen\MahlzeitController::loeschen
methods: [POST]
requirements:
id: \d+