diff options
author | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-04-09 18:37:31 +0200 |
---|---|---|
committer | Bernhard Posselt <dev@bernhard-posselt.com> | 2014-04-09 22:52:28 +0200 |
commit | 7506619c9cf882a7c5b910a83c17a7d044a3f4d2 (patch) | |
tree | 3ff05fa3ae396c2d9a9c8ef2cf048ae9d5e4cc4e /appinfo | |
parent | 37cf704fdd91387b365a64e34fba55ac8add9222 (diff) |
make 3rdparty folder readable for all, add cors route
Diffstat (limited to 'appinfo')
-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 |