acoustep/entrust-gui

View on GitHub
src/Http/routes.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php
Route::group(
    [
      'prefix' => Config::get("entrust-gui.route-prefix"),
      'middleware' => Config::get("entrust-gui.middleware")
    ],
    function () {
        Route::get('users', ['uses' => 'UsersController@index', 'as' => 'entrust-gui::users.index']);
        Route::get('users/create', ['uses' => 'UsersController@create', 'as' => 'entrust-gui::users.create']);
        Route::post('users', ['uses' => 'UsersController@store', 'as' => 'entrust-gui::users.store']);
        Route::get('users/{id}/edit', ['uses' => 'UsersController@edit', 'as' => 'entrust-gui::users.edit']);
        Route::put('users/{id}', ['uses' => 'UsersController@update', 'as' => 'entrust-gui::users.update']);
        Route::delete('users/{id}', ['uses' => 'UsersController@destroy', 'as' => 'entrust-gui::users.destroy']);

        Route::get('roles', ['uses' => 'RolesController@index', 'as' => 'entrust-gui::roles.index']);
        Route::get('roles/create', ['uses' => 'RolesController@create', 'as' => 'entrust-gui::roles.create']);
        Route::post('roles', ['uses' => 'RolesController@store', 'as' => 'entrust-gui::roles.store']);
        Route::get('roles/{id}/edit', ['uses' => 'RolesController@edit', 'as' => 'entrust-gui::roles.edit']);
        Route::put('roles/{id}', ['uses' => 'RolesController@update', 'as' => 'entrust-gui::roles.update']);
        Route::delete('roles/{id}', ['uses' => 'RolesController@destroy', 'as' => 'entrust-gui::roles.destroy']);

        Route::get('permissions', ['uses' => 'PermissionsController@index', 'as' => 'entrust-gui::permissions.index']);
        Route::get(
            'permissions/create',
            [
                'uses' => 'PermissionsController@create',
                'as' => 'entrust-gui::permissions.create'
            ]
        );
        Route::post('permissions', ['uses' => 'PermissionsController@store', 'as' => 'entrust-gui::permissions.store']);
        Route::get(
            'permissions/{id}/edit',
            [
                'uses' => 'PermissionsController@edit',
                'as' => 'entrust-gui::permissions.edit'
            ]
        );
        Route::put(
            'permissions/{id}',
            [
                'uses' => 'PermissionsController@update',
                'as' => 'entrust-gui::permissions.update'
            ]
        );
        Route::delete(
            'permissions/{id}',
            [
                'uses' => 'PermissionsController@destroy',
                'as' => 'entrust-gui::permissions.destroy'
            ]
        );

    }
);