'trace' =>
$e->
getTraceAsString(),
];
$response['Content-Type'
] = 'application/json';
$response->
body(json_encode($data));
});
$app->
map('/noaccess',
function D
) use ($app) { $app->
view()->
setData('filePath', UPDATE_PATH . '/allowed_ip.txt'
);
$app->
render('noaccess.php'
);
$app->
response()->
status(403
);
})->
via('GET', 'POST'
)->
name('noAccess'
);
$app->
map('/',
function D
) use ($app) { $app->
render('welcome.php'
);
if (!UPDATE_IS_MANUAL
) { $app->
redirect($app->
urlFor('checks'
));
return;
}})->
via('GET', 'POST'
)->
name('welcome'
);