Skip to content

Commit

Permalink
Add Resource routes to web index file.
Browse files Browse the repository at this point in the history
  • Loading branch information
Potherca committed Aug 7, 2020
1 parent 41a8603 commit 0d60cba
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions web/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,12 @@
use League\Route\Router;

/*/ Generic Pdsinterop /*/
use Pdsinterop\Authentication\Enum\ServerPrefix;
use Pdsinterop\Authentication\Router as ProjectRouter;

/*/ Resource Server /*/
use Pdsinterop\Authentication\Resource\Router as ResourceRouter;

require_once __DIR__ . '/../vendor/autoload.php';

session_start();
Expand All @@ -34,6 +38,7 @@

$routes = [
'/' => new ProjectRouter($response),
ServerPrefix::RESOURCE => new ResourceRouter($response),
];

array_walk($routes, function ($handler, $route) use (&$router) {
Expand Down

0 comments on commit 0d60cba

Please sign in to comment.