mirror of
https://codeberg.org/demostf/api.git
synced 2026-06-04 02:14:06 +02:00
cleanup
This commit is contained in:
parent
5986d8552d
commit
73469d2aa1
29 changed files with 140 additions and 149 deletions
|
|
@ -30,7 +30,6 @@ $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: *');
|
||||
|
|
@ -67,6 +66,4 @@ 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