Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support mounting dynamic routes. FIxes #250 #288

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
rename variables
  • Loading branch information
davidmartos96 committed Sep 15, 2022
commit ebc69e4e2951c0bc8f39d5a5c30e6bf3cb8299ec
8 changes: 4 additions & 4 deletions pkgs/shelf_router/test/router_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -222,8 +222,8 @@ void main() {
var router = Router();

router.mount('/to/<other>/', (Request request, String other) {
final r = createUserToOtherHandler(user, other);
return r(request);
final handler = createUserToOtherHandler(user, other);
return handler(request);
});

router.get('/self', (Request request) {
Expand All @@ -242,8 +242,8 @@ void main() {
});

app.mount('/users/<user>', (Request request, String user) {
final r = createUserHandler(user);
return r(request);
final handler = createUserHandler(user);
return handler(request);
});

app.all('/<_|[^]*>', (Request request) {
Expand Down