M2: Status & Wochentage – Schritt 2 (UI): Tagesansicht, htmx-CheckOff/Uncheck-Partials, Archiv-Tab + Feature-Tests
This commit is contained in:
@@ -26,6 +26,12 @@ mahlzeiten_index:
|
||||
controller: App\UI\Http\Essen\MahlzeitController::index
|
||||
methods: [GET]
|
||||
|
||||
# M2: Archiv (gegessene Mahlzeiten)
|
||||
mahlzeiten_archiv:
|
||||
path: /mahlzeiten/archiv
|
||||
controller: App\UI\Http\Essen\MahlzeitController::archiv
|
||||
methods: [GET]
|
||||
|
||||
mahlzeiten_neu:
|
||||
path: /mahlzeiten/neu
|
||||
controller: App\UI\Http\Essen\MahlzeitController::neu
|
||||
@@ -56,3 +62,18 @@ mahlzeiten_loeschen:
|
||||
methods: [POST]
|
||||
requirements:
|
||||
id: \d+
|
||||
|
||||
# M2: Status-Wechsel als htmx-Partial-Endpunkte (Fragment-Antwort)
|
||||
mahlzeiten_checkoff:
|
||||
path: /mahlzeiten/{id}/checkoff
|
||||
controller: App\UI\Http\Essen\MahlzeitController::checkoff
|
||||
methods: [POST]
|
||||
requirements:
|
||||
id: \d+
|
||||
|
||||
mahlzeiten_uncheck:
|
||||
path: /mahlzeiten/{id}/uncheck
|
||||
controller: App\UI\Http\Essen\MahlzeitController::uncheck
|
||||
methods: [POST]
|
||||
requirements:
|
||||
id: \d+
|
||||
|
||||
Reference in New Issue
Block a user