noahbuscher / macaw

The simple PHP router
MIT License
896 stars 186 forks source link

Can i use it for routes group ? #42

Open fizzcome opened 8 years ago

fizzcome commented 8 years ago

Can i use it for routes group like laravel's route as below :

Route::group(['namespace' => 'Admin'], function()
{
    // Controllers Within The "App\Http\Controllers\Admin" Namespace

    Route::group(['namespace' => 'User'], function() {
        // Controllers Within The "App\Http\Controllers\Admin\User" Namespace
    });
});

or

Route::group(['middleware' => 'auth'], function () {
    Route::get('/', function ()    {
        // Uses Auth Middleware
    });

    Route::get('user/profile', function () {
        // Uses Auth Middleware
    });
});

I just want to seperate different modules

artyuum commented 7 years ago

If someone could implement this that would be great!

dcblogdev commented 6 years ago

that would take a complete re-write.