Development + bugfixes

This commit is contained in:
Simon Sessingø
2016-11-15 03:43:26 +01:00
parent 6de0700e17
commit d5e7a13d89
20 changed files with 472 additions and 388 deletions
@@ -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
]);
}
@@ -6,7 +6,7 @@ class DefaultController {
public function index() {
// implement
echo 'DefaultController -> index';
echo sprintf('DefaultController -> index (?fun=%s)', input()->get('fun'));
}