Last active
April 20, 2021 15:29
-
-
Save felixblaschke/5c2625741c41b1ea61824c0cb83c3e8a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'dart:io'; | |
import 'package:alfred/alfred.dart'; | |
void main() async { | |
var app = Alfred(); | |
app.get('*', (req, res) => Directory('public')); | |
await app.listen(8080); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment