diff options
Diffstat (limited to 'appinfo/routes.php')
-rw-r--r-- | appinfo/routes.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/appinfo/routes.php b/appinfo/routes.php index 728ad9051..6e6fc59f0 100644 --- a/appinfo/routes.php +++ b/appinfo/routes.php @@ -112,10 +112,10 @@ $app->registerRoutes($this, array( ) )); -/* TODO: FIX CORS + $this->create('news_api_cors', '/api/v1-2/{path}')->method('options')->action( function($params) { - return App::main('NewsAPI', 'cors', $params, new DIContainer()); + $app = new News($params); + $app->dispatch('NewsApiController', 'cors'); } -)->requirements(array('path' => '.+')); -*/
\ No newline at end of file +)->requirements(array('path' => '.+'));
\ No newline at end of file |