endeavor 0.1.9 endeavor: ^0.1.9 copied to clipboard
Endeavor is a web framework written in Dart programming language and is inspired by frameworks like [Ruby on Rails](https://rubyonrails.org), and [Express Js](https://expressjs.com). The goal of Endea [...]
// example.dart
import 'dart:io';
import 'package:endeavor/endeavor.dart';
void main() async {
final app = Endeavor();
app.GET('/', (Request req, Response res){
res.sendString('Ta daa');
});
app.GET('/home', RootController().home);
var server = await HttpServer.bind('127.0.0.1', 80, shared: true);
await app.runServer();
}
class RootController{
home(Request req, Response res) async {
res.sendString('T daa');
}
}