Merge pull request #179 from skipperbent/v2

V2
This commit is contained in:
Simon Sessingø
2016-11-24 14:45:06 +02:00
committed by GitHub
+2 -2
View File
@@ -57,7 +57,7 @@ require_once 'routes.php';
* Can be overwritten by using the namespace config option on your routes.
*/
SimpleRouter::setDefaultNamespace('MyWebsite');
SimpleRouter::setDefaultNamespace('Demo\Controllers');
// Start the routing
SimpleRouter::start();
@@ -233,7 +233,7 @@ $route = new RouteUrl('/answer/1', function() {
});
$route->setMiddleware('\Demo\Middlewares\AuthMiddleware');
$route->setNamespace('MyWebsite');
$route->setNamespace('\Demo\Controllers');
$route->setPrefix('v1');
/* Add the route to the router */