2016-11-23 22:03:06 +00:00
|
|
|
import 'package:angel_framework/angel_framework.dart';
|
|
|
|
|
|
|
|
Angel testApp() {
|
|
|
|
final app = new Angel();
|
|
|
|
|
|
|
|
app.get('/hello', 'world');
|
|
|
|
app.get('/foo/bar', 'baz');
|
2017-04-02 02:06:27 +00:00
|
|
|
app.post('/body', (req, res) => req.lazyBody());
|
2016-11-23 22:03:06 +00:00
|
|
|
|
2017-04-02 02:06:27 +00:00
|
|
|
app.fatalErrorStream.listen((e) {
|
|
|
|
print('FATAL IN TEST APP: ${e.error}');
|
|
|
|
print(e.stack);
|
|
|
|
});
|
|
|
|
|
|
|
|
return app..dumpTree();
|
|
|
|
}
|