This repository has been archived on 2018-05-28. You can view files and clone it, but cannot push or open issues or pull requests.
BBB-Simple-ACS/server/src/Init/routes.php

21 lines
536 B
PHP

<?php
namespace acs;
use Acast\Http\Router;
use Acast\Http\Server;
function init_routes()
{
$router = Router::create('acs');
$router->add(['auth', '/token'], 'GET', function () {
$this->invoke();
})->bind(['Auth', 'init']);
$router->add(['client', '/id', '/key'], 'GET', function () {
$this->invoke();
})->bind(['Client', 'tick']);
$router->add(['auth-confirm', '/token'], 'GET', function () {
$this->invoke();
})->bind(['Auth', 'confirm']);
Server::app('acs')->route('acs');
}