Angel.secure, fallback routes, 404, app.addRoute, app.all, services are a go (just missing params, i.e. $sort?), now have service.app, app.before, app.after, angel.configure now uses futures, errors are implemented
2016-04-29 00:01:58 +00:00
|
|
|
# angel_framework
|
2016-06-21 22:56:04 +00:00
|
|
|
|
2017-02-01 21:43:18 +00:00
|
|
|
[![pub 1.0.0-dev.54](https://img.shields.io/badge/pub-1.0.0--dev.54-red.svg)](https://pub.dartlang.org/packages/angel_framework)
|
2016-12-19 01:43:35 +00:00
|
|
|
[![build status](https://travis-ci.org/angel-dart/framework.svg)](https://travis-ci.org/angel-dart/framework)
|
2016-06-21 22:56:04 +00:00
|
|
|
|
2017-01-12 01:52:06 +00:00
|
|
|
Core libraries for the Angel Framework.
|
|
|
|
|
|
|
|
```dart
|
|
|
|
import 'package:angel_framework/angel_framework.dart';
|
|
|
|
|
|
|
|
main() async {
|
|
|
|
var app = new Angel();
|
|
|
|
|
|
|
|
app
|
|
|
|
..get('/hello', (req, res) {
|
|
|
|
res.write('world!');
|
|
|
|
})
|
|
|
|
..post('/date', () => new DateTime.now().toString());
|
|
|
|
|
|
|
|
await app.startServer();
|
|
|
|
}
|
|
|
|
```
|