ion 0.5.1 ion: ^0.5.1 copied to clipboard
A HTTP framework highly influenced by Express in which you easy and fast make a server without writing a lot of code
import "package:ion/ion.dart";
import "dart:io";
void main() {
//pass a port
var app = Ion(80);
app.get("/", (req, res) {
res.send("Welcome on my page!");
});
app.get("/contact", (req, res) {
var f = File("./static/contact.html");
res.send(f);
});
}