ion 0.5.1 copy "ion: ^0.5.1" to clipboard
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

example/main.dart

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);
  });

}
0
likes
40
pub points
0%
popularity

Publisher

unverified uploader

A HTTP framework highly influenced by Express in which you easy and fast make a server without writing a lot of code

Repository (GitHub)
View/report issues

License

MIT (LICENSE)

More

Packages that depend on ion