Skip to content

Instantly share code, notes, and snippets.

@ThomasLocke
Created October 12, 2014 15:07
Show Gist options
  • Save ThomasLocke/491c357a21082078b2ab to your computer and use it in GitHub Desktop.
Save ThomasLocke/491c357a21082078b2ab to your computer and use it in GitHub Desktop.
shelf.middleware.routes.dart
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