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:
parent
fa7a6f9b0a
commit
df83a46e20
17 changed files with 265 additions and 38 deletions
|
|
@ -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: *');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue