Upload files

This commit is contained in:
2021-12-22 01:38:34 -03:00
parent fddba2fb87
commit 93f77bfbb8
9 changed files with 275 additions and 20 deletions

View File

@ -2,15 +2,23 @@
use Psr\Container\ContainerInterface as Container;
return [
Slim\Views\Blade::class => function(Container $c) {
return new Slim\Views\Blade(
$c->get('folders')->templates,
$c->get('folders')->cache,
null,
[
'api_key' => $c->get('API_KEY'),
'urls' => $c->get('urls')
]
);
}
Slim\Views\Blade::class => function(Container $c) {
return new Slim\Views\Blade(
$c->get('folders')->templates,
$c->get('folders')->cache,
null,
[
'api_key' => $c->get('API_KEY'),
'urls' => $c->get('urls')
]
);
},
GuzzleHttp\Client::class => function(Container $c) {
return new GuzzleHttp\Client([
'base_uri' => 'http://api-proxy',
'headers' => [
'Authorization' => 'Bearer ' . $c->get('API_KEY')
]
]);
}
];