platform/example/status.dart
2018-11-13 16:17:31 -05:00

14 lines
319 B
Dart

import 'package:angel_framework/angel_framework.dart';
import 'package:angel_framework/http.dart';
main() async {
var app = new Angel();
var http = new AngelHttp(app);
app.fallback((req, res) {
res.statusCode = 304;
});
await http.startServer('127.0.0.1', 3000);
print('Listening at ${http.uri}');
}