1
0
Fork 0
mirror of https://codeberg.org/demostf/api.git synced 2026-06-04 02:14:06 +02:00

use url based parser

This commit is contained in:
Robin Appelman 2018-09-13 23:32:27 +02:00
commit f3d07823df
5 changed files with 82 additions and 5 deletions

View file

@ -9,10 +9,13 @@ use Flight;
/** @var Container $container */
$container = require __DIR__ . '/init.php';
$tempController = new Controllers\TempController($container->getApiRoot() . '/temp/');
$uploadController = new Controllers\UploadController(
$container->getRequest(),
$container->getResponse(),
$container->getUploadProvider()
$container->getUploadProvider(),
$tempController
);
Flight::route('/*', function () {