route /login managed through vue router

This commit is contained in:
isUnknown 2025-04-30 16:09:24 +02:00
parent 5b3549068b
commit de52c5e6be
4 changed files with 41 additions and 32 deletions

View file

@ -1,7 +1,15 @@
<?php
if (!$kirby->user()) {
return json_encode([
'page' => $genericData,
'user' => []
]);
}
function getProjectData($project)
{
{
$data = [
'title' => $project->title()->value(),
'url' => $project->url(),