* @author Connor S. Parks */ class UserRoutes { /** * Defines if these routes are for the browser. * * @var bool */ public static $browser = true; /** * Define the dashboard user routes. * * @param \Illuminate\Contracts\Routing\Registrar $router * * @return void */ public function map(Registrar $router) { $router->group([ 'middleware' => ['auth'], 'namespace' => 'Dashboard', 'prefix' => 'dashboard/user', ], function (Registrar $router) { $router->get('/', [ 'as' => 'get:dashboard.user', 'uses' => 'UserController@showUser', ]); $router->post('/', [ 'as' => 'post:dashboard.user', 'uses' => 'UserController@postUser', ]); $router->get('{user}/api/regen', [ 'as' => 'get:dashboard.user.api.regen', 'uses' => 'UserController@regenerateApiKey', ]); }); } }