Skip to content

Instantly share code, notes, and snippets.

@ThomasLocke
Created October 12, 2014 15:07
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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