server/src/app/Http/routes.php
changeset 107 16e1473a6a99
parent 28 b0b56e0f8c7f
child 126 e87a340711a4
--- a/server/src/app/Http/routes.php	Fri Jan 22 17:09:33 2016 +0100
+++ b/server/src/app/Http/routes.php	Fri Jan 22 17:43:25 2016 +0100
@@ -35,7 +35,7 @@
 |
 */
 
-Route::group(['prefix' => 'api/v1'] , function() {
+Route::group(['prefix' => 'api/v1', 'middleware' => 'cors'] , function() {
     Route::resource('documents', 'Api\DocumentController',
                     ['only' => ['index', 'show', 'update']]);
     Route::resource('viaf', 'Api\ViafController',