Merge remote-tracking branch 'origin/dev' into dev

pull/11/head
DebuggerX 3 years ago
commit 1a0d2f3acf

@ -1,4 +1,5 @@
import 'package:angel3_framework/angel3_framework.dart'; import 'package:angel3_framework/angel3_framework.dart';
import 'package:angel3_cors/angel3_cors.dart';
import 'package:file/file.dart'; import 'package:file/file.dart';
import 'controllers/auth_controllers.dart' as auth_controllers; import 'controllers/auth_controllers.dart' as auth_controllers;
import 'controllers/system_controllers.dart' as system_controllers; import 'controllers/system_controllers.dart' as system_controllers;
@ -20,6 +21,8 @@ AngelConfigurer configureServer(FileSystem fileSystem) {
return true; return true;
}); });
app.fallback(cors());
// Typically, you want to mount controllers first, after any global middleware. // Typically, you want to mount controllers first, after any global middleware.
await app.configure(system_controllers.configureServer); await app.configure(system_controllers.configureServer);
await app.configure(auth_controllers.configureServer); await app.configure(auth_controllers.configureServer);

@ -18,6 +18,7 @@ dependencies:
logging: ^1.0.0 logging: ^1.0.0
mailer: ^5.0.2 mailer: ^5.0.2
uuid: ^3.0.5 uuid: ^3.0.5
angel3_cors: ^4.1.0
neat_cache: neat_cache:
path: 3rd_party/neat_cache path: 3rd_party/neat_cache
dev_dependencies: dev_dependencies:

Loading…
Cancel
Save