summaryrefslogtreecommitdiffstats
path: root/appinfo/routes.php
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2014-04-09 18:37:31 +0200
committerBernhard Posselt <dev@bernhard-posselt.com>2014-04-09 22:52:28 +0200
commit7506619c9cf882a7c5b910a83c17a7d044a3f4d2 (patch)
tree3ff05fa3ae396c2d9a9c8ef2cf048ae9d5e4cc4e /appinfo/routes.php
parent37cf704fdd91387b365a64e34fba55ac8add9222 (diff)
make 3rdparty folder readable for all, add cors route
Diffstat (limited to 'appinfo/routes.php')
-rw-r--r--appinfo/routes.php8
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