mirror of
https://github.com/skipperbent/simple-php-router.git
synced 2026-07-11 11:32:13 +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.
|
* 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 */
|
||||||
|
|||||||
Reference in New Issue
Block a user