Created
September 30, 2014 10:39
-
-
Save Andersmholmgren/291fd40a58f7bfa9c561 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 'handlers2.dart' as handler; | |
import 'package:shelf_route/shelf_route.dart'; | |
import 'package:shelf_bind/shelf_bind.dart'; | |
Router routes = new Router(handlerAdapter: handlerAdapter()) | |
..get('/user/{userid}', handler.getUser) | |
..put('/user/{userid}/name', handler.setUserName); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment