platform/framework/example/status.dart

15 lines
311 B
Dart
Raw Normal View History

2018-11-13 21:17:31 +00:00
import 'package:angel_framework/angel_framework.dart';
import 'package:angel_framework/http.dart';
main() async {
2019-05-02 22:48:31 +00:00
var app = Angel();
var http = AngelHttp(app);
2018-11-13 21:17:31 +00:00
app.fallback((req, res) {
res.statusCode = 304;
});
await http.startServer('127.0.0.1', 3000);
print('Listening at ${http.uri}');
}