mirror of
https://github.com/skipperbent/simple-php-router.git
synced 2026-07-11 22:42:14 +00:00
Updated documentation to use Demo instead of MyWebsite
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user