mirror of
https://github.com/skipperbent/simple-php-router.git
synced 2026-06-17 00:37:52 +00:00
Development + bugfixes
This commit is contained in:
@@ -9,12 +9,10 @@ class ApiController {
|
||||
|
||||
// The variable authenticated is set to true in the ApiVerification middleware class.
|
||||
|
||||
$request = SimpleRouter::request();
|
||||
|
||||
header('content-type: application/json');
|
||||
|
||||
echo json_encode([
|
||||
'authenticated' => $request->authenticated
|
||||
'authenticated' => request()->authenticated
|
||||
]);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user