* changed routes while debuging endpoints

* added corsmiddlewarefactory
* changing teams is now possible
This commit is contained in:
Dávid Danyi
2018-04-09 18:41:04 +02:00
parent 1143075e17
commit 117c10a56a
5 changed files with 62 additions and 9 deletions

View File

@@ -0,0 +1,18 @@
<?php
declare(strict_types=1);
namespace DoctrineExpressiveModule\Middleware;
use Psr\Container\ContainerInterface;
use Tuupola\Middleware\CorsMiddleware;
class CorsMiddlewareFactory
{
public function __invoke(ContainerInterface $container) : CorsMiddleware
{
return new CorsMiddleware([
"headers.allow" => ["Authorization", "If-Match", "If-Unmodified-Since", "Content-type"],
]);
}
}