Corrected namespace in folder structure

This commit is contained in:
SteamPixel 2020-01-14 12:03:03 +01:00
parent 6b174280d5
commit 7a3d28bacc
3 changed files with 2 additions and 2 deletions

View File

@ -13,7 +13,7 @@ The third argument will match the request method. The default method is 'get'.
## Simple example:
```php
use Steampixel\Route;
include 'Route.php';
include 'src\Steampixel\Route.php';
Route::add('/user/([0-9]*)/edit', function($id) {
echo 'Edit user with id '.$id.'<br>';

View File

@ -4,7 +4,7 @@
use Steampixel\Route;
// Include router class
include 'src/Route.php';
include 'src/Steampixel/Route.php';
function navi() {
echo <<<EOD