private function createOptionsRoutes(Application $app)
    {
        foreach ($app['cors.allowed_methods'] as $path => $route) {
            $app->match($path, new Cors\OptionsController($route['methods']))
                ->setRequirements($route['requirements'])
                ->method('OPTIONS');
        }
    }
private function createOptionsRoutes(Application $app)
    {
        foreach ($app['cors.allowed_methods'] as $path => $route) {
            $app->match($path, new Cors\OptionsController($route['methods']))
                ->setRequirements($route['requirements'])
                ->method('OPTIONS');
        }
    }
private function createOptionsRoutes ( Application $ app ) { foreach ( $ app [ 'cors.allowed_methods' ] as $ path => $ route ) { $ app -> match ( $ path , new Cors \ OptionsController ( $ route [ 'methods' ] ) ) -> setRequirements ( $ route [ 'requirements' ] ) -> method ( 'OPTIONS' ) ; } }
Create options route

@param  Application $app
@return void
Create options route