From 3655c7020eab17723a290e6f6e0f738f5c537d67 Mon Sep 17 00:00:00 2001 From: Tobe O Date: Sun, 4 Dec 2016 21:52:45 -0500 Subject: [PATCH] Update routes.dart --- lib/src/routes/routes.dart | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/src/routes/routes.dart b/lib/src/routes/routes.dart index b5ea85a..89eabd9 100644 --- a/lib/src/routes/routes.dart +++ b/lib/src/routes/routes.dart @@ -1,12 +1,15 @@ /// This app's route configuration. library angel.routes; +import 'package:angel_cors/angel_cors.dart'; import 'package:angel_framework/angel_framework.dart'; import 'package:angel_proxy/angel_proxy.dart'; import 'package:angel_static/angel_static.dart'; import 'controllers/controllers.dart' as Controllers; -configureBefore(Angel app) async {} +configureBefore(Angel app) async { + app.before.add(cors()); +} /// Put your app routes here! configureRoutes(Angel app) async {