mirror of
https://github.com/felixblaschke/shelf_plus.git
synced 2025-08-03 17:43:18 +08:00
12 lines
183 B
Dart
12 lines
183 B
Dart
import 'package:shelf_plus/shelf_plus.dart';
|
|
|
|
void main() => shelfRun(init);
|
|
|
|
Handler init() {
|
|
var app = Router().plus;
|
|
|
|
app.get('/', () => 'Hello World!');
|
|
|
|
return app.call;
|
|
}
|