Ejemplo n.º 1
0
function Phredux($bearer)
{
    try {
        echo json_encode(Router($bearer));
    } catch (Exception $e) {
        echo json_encode(['message' => $e->getMessage()]);
    }
}
Ejemplo n.º 2
0
<?php

include "../modules/Utils/src/Utils/Model/Router.php";
$config = (require '../config/config.php');
$router = Router($_SERVER['REQUEST_URI'], $config);
include "../modules/" . $router['module'] . "/src/" . $router['module'] . "/Controller/" . $router['controller'] . ".php";