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-04-10 02:39:19 +00:00
|
|
|
[![pub 1.0.0](https://img.shields.io/badge/pub-1.0.0-brightgreen.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-04-01 01:00:24 +00:00
|
|
|
A high-powered HTTP server with support for dependency injection, sophisticated routing and more.
|
2017-01-12 01:52:06 +00:00
|
|
|
|
|
|
|
```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();
|
|
|
|
}
|
2017-03-06 00:52:16 +00:00
|
|
|
```
|