Merge pull request #178 from skipperbent/v2-development

Updated documentation to use Demo instead of MyWebsite
This commit is contained in:
Simon Sessingø
2016-11-24 14:44:56 +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. * Can be overwritten by using the namespace config option on your routes.
*/ */
SimpleRouter::setDefaultNamespace('MyWebsite'); SimpleRouter::setDefaultNamespace('Demo\Controllers');
// Start the routing // Start the routing
SimpleRouter::start(); SimpleRouter::start();
@@ -233,7 +233,7 @@ $route = new RouteUrl('/answer/1', function() {
}); });
$route->setMiddleware('\Demo\Middlewares\AuthMiddleware'); $route->setMiddleware('\Demo\Middlewares\AuthMiddleware');
$route->setNamespace('MyWebsite'); $route->setNamespace('\Demo\Controllers');
$route->setPrefix('v1'); $route->setPrefix('v1');
/* Add the route to the router */ /* Add the route to the router */