Created
September 30, 2014 09:40
-
-
Save Andersmholmgren/d7cf112c45f0e6c875d6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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