Created
October 12, 2014 15:07
-
-
Save ThomasLocke/491c357a21082078b2ab to your computer and use it in GitHub Desktop.
shelf.middleware.routes.dart
This file contains 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 shelfmiddleware.routes; | |
import 'handlers.dart' as handler; | |
import 'package:shelf_route/shelf_route.dart'; | |
final Router routes = new Router() | |
..get('/app{?token}', handler.app) | |
..get('/foo{?token}', handler.foo); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment