2021-05-14 10:34:09 +00:00
|
|
|
import 'package:angel3_framework/angel3_framework.dart';
|
|
|
|
import 'package:angel3_framework/http.dart';
|
2018-11-13 21:17:31 +00:00
|
|
|
|
2021-05-14 10:34:09 +00:00
|
|
|
void 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}');
|
|
|
|
}
|