Skip to content

Commit

Permalink
Merge pull request #17 from Syonix/develop
Browse files Browse the repository at this point in the history
Fix for #15
  • Loading branch information
mpbzh committed Aug 7, 2015
2 parents 34ee93c + 3a72618 commit 422929e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ matrix:
- php: 7.0

install:
- composer install
- composer install --prefer-source

script:
- php vendor/phpunit/phpunit/phpunit
- vendor/bin/phpunit
4 changes: 2 additions & 2 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,10 @@
'error' => $error
));
})
->bind("set_pwd")
->bind("home")
->method('POST|GET');
$app->match('/{url}', function(\Symfony\Component\HttpFoundation\Request $request) use($app) {
return $app->redirect($app['url_generator']->generate('set_pwd'));
return $app->redirect($app['url_generator']->generate('home'));
})
->assert('url', '.+'); // Match any route;
}
Expand Down

0 comments on commit 422929e

Please sign in to comment.