nero 1.0.0-dev+4 nero: ^1.0.0-dev+4 copied to clipboard
Microframework based on Express and angel_route.
nero #
Microframework based on Express and angel_route. This framework is unrelated to Angel.
Documentation soon to come.
main() {
final app = new Nero();
app.get('/', (req) => new Response.text('Hello, world!'));
app.chain((req, next) async {
req.properties['user'] = await someQuery(req.params.id);
}).get('/user/:id', (req) {
return new Response.json(req.user);
});
}