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

filter by backend

This commit is contained in:
Robin Appelman 2017-08-08 00:29:24 +02:00
commit df83a46e20
17 changed files with 265 additions and 38 deletions

View file

@ -4,13 +4,16 @@ declare(strict_types=1);
namespace Demostf\API;
use Demostf\API\Providers\Container;
use Flight;
/** @var Container $container */
$container = require __DIR__ . '/init.php';
$uploadController = new Controllers\UploadController($container->getUploadProvider());
$uploadController = new Controllers\UploadController(
$container->getRequest(),
$container->getResponse(),
$container->getUploadProvider()
);
Flight::route('/*', function () {
header('Access-Control-Allow-Origin: *');