protevus/lib/src/config/config.dart

14 lines
428 B
Dart
Raw Normal View History

2016-04-22 02:56:21 +00:00
/// Configuration for this Angel instance.
library angel.config;
import 'dart:io';
2016-12-21 22:05:11 +00:00
import 'package:angel_common/angel_common.dart';
2016-12-10 18:51:02 +00:00
import 'plugins/plugins.dart' as plugins;
2016-04-22 02:56:21 +00:00
2016-06-23 21:54:10 +00:00
/// This is a perfect place to include configuration and load plug-ins.
2016-04-29 01:22:53 +00:00
configureServer(Angel app) async {
2016-06-21 23:39:09 +00:00
await app.configure(loadConfigurationFile());
2016-04-29 01:22:53 +00:00
await app.configure(mustache(new Directory('views')));
2016-12-10 18:51:02 +00:00
await plugins.configureServer(app);
2016-06-23 21:54:10 +00:00
}