Skip to content

Instantly share code, notes, and snippets.

@Andersmholmgren
Created September 30, 2014 09:40
Show Gist options
  • Save Andersmholmgren/d7cf112c45f0e6c875d6 to your computer and use it in GitHub Desktop.
Save Andersmholmgren/d7cf112c45f0e6c875d6 to your computer and use it in GitHub Desktop.
library shelftest.routes;
import 'handlers.dart' as handler;
import 'package:shelf_route/shelf_route.dart';
Router routes = new Router()
..addAll((Router r) => r
..get('/', handler.getUser)
..put('/name', handler.setUserName),
path: '/user/{userid}');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment