2016-04-22 02:56:21 +00:00
|
|
|
/// Configuration for this Angel instance.
|
|
|
|
library angel.config;
|
|
|
|
|
|
|
|
import 'dart:io';
|
|
|
|
import 'package:angel_configuration/angel_configuration.dart';
|
|
|
|
import 'package:angel_framework/angel_framework.dart';
|
|
|
|
import 'package:angel_mustache/angel_mustache.dart';
|
|
|
|
import 'routes.dart';
|
|
|
|
|
2016-04-29 01:22:53 +00:00
|
|
|
configureServer(Angel app) async {
|
2016-04-30 00:33:27 +00:00
|
|
|
app.configure(loadConfigurationFile());
|
2016-04-29 01:22:53 +00:00
|
|
|
await app.configure(mustache(new Directory('views')));
|
|
|
|
await app.configure(configureRoutes);
|
2016-04-22 02:56:21 +00:00
|
|
|
}
|