21 lines
419 B
PHP
21 lines
419 B
PHP
|
<?php
|
||
|
|
||
|
class CheckSessionController extends Controller {
|
||
|
const PATH = '/check-session';
|
||
|
|
||
|
public function validations() {
|
||
|
return [
|
||
|
'permission' => 'any',
|
||
|
'requestData' => []
|
||
|
];
|
||
|
}
|
||
|
|
||
|
public function handler() {
|
||
|
$session = Session::getInstance();
|
||
|
|
||
|
Response::respondSuccess([
|
||
|
'sessionActive' => $session->sessionExists()
|
||
|
]);
|
||
|
}
|
||
|
}
|