Contact statische text via API

This commit is contained in:
NH Gooi
2026-02-27 14:58:59 +01:00
parent c6271899aa
commit 851a0df432
2 changed files with 90 additions and 98 deletions

View File

@@ -12,7 +12,17 @@ class ContactController extends Controller
{
public function show()
{
return view('contact');
$page = $this->API('statisch/contact');
if ($page == null) {
return abort(404);
}
$page->published = Controller::JsonToDateTime($page->published);
if ($page->edited) {
$page->edited = Controller::JsonToDateTime($page->edited);
}
return view('contact', ['page' => $page]);
}
public function submit(Request $request)