mirror of
https://codeberg.org/demostf/api.git
synced 2026-06-03 18:04:08 +02:00
use url based parser
This commit is contained in:
parent
e61c5fc249
commit
f3d07823df
5 changed files with 82 additions and 5 deletions
|
|
@ -30,6 +30,7 @@ $userController = new Controllers\UserController($container->getRequest(), $cont
|
|||
$container->getUserProvider());
|
||||
$infoController = new Controllers\InfoController($container->getRequest(), $container->getResponse(),
|
||||
$container->getInfoProvider());
|
||||
$tempController = new Controllers\TempController($container->getApiRoot() . '/temp/');
|
||||
|
||||
Flight::route('/*', function () {
|
||||
header('Access-Control-Allow-Origin: *');
|
||||
|
|
@ -66,4 +67,6 @@ Flight::route('/auth/handle/@token', [$authController, 'handle']);
|
|||
Flight::route('/auth/login/@token', [$authController, 'login']);
|
||||
Flight::route('/auth/logout/@token', [$authController, 'logout']);
|
||||
|
||||
Flight::route('/temp/@hash', [$tempController, 'serve']);
|
||||
|
||||
Flight::start();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue