From 7506619c9cf882a7c5b910a83c17a7d044a3f4d2 Mon Sep 17 00:00:00 2001 From: Bernhard Posselt Date: Wed, 9 Apr 2014 18:37:31 +0200 Subject: make 3rdparty folder readable for all, add cors route --- appinfo/routes.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'appinfo/routes.php') 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 -- cgit v1.2.3