Skip to content

Instantly share code, notes, and snippets.

@ThomasLocke
Created September 28, 2014 16:09
Show Gist options
  • Save ThomasLocke/c8c0e44eaac371051aff to your computer and use it in GitHub Desktop.
Save ThomasLocke/c8c0e44eaac371051aff to your computer and use it in GitHub Desktop.
shelftest.routes.dart
library shelftest.routes;
import 'handlers.dart' as handler;
import 'package:shelf_route/shelf_route.dart';
Router routes = new Router()
..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