This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
use Directus\Application\Http\Request; | |
use Directus\Application\Http\Response; | |
return [ | |
'' => [ | |
'method' => 'GET', | |
'handler' => function (Request $request, Response $response) { | |
// Simple GET endpoint example |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php // Version 3.0 | |
use Directus\Application\Http\Request; | |
use Directus\Application\Http\Response; | |
class User { | |
private $data; | |
private $role; |