Updated documentation and added demo-project.

This commit is contained in:
Simon Sessingø
2016-09-26 14:37:54 +02:00
parent fab0d0641c
commit 980a4e9b6a
13 changed files with 359 additions and 3 deletions
@@ -0,0 +1,22 @@
<?php
namespace Demo\Controllers;
use Pecee\Http\Request;
class ApiController {
public function index() {
// The variable authenticated is set to true in the ApiVerification middleware class.
$request = Request::getInstance();
header('content-type: application/json');
echo json_encode([
'authenticated' => $request->authenticated
]);
}
}