Skip to content

Instantly share code, notes, and snippets.

@lukepolo
Created March 30, 2015 15:02
Show Gist options
  • Save lukepolo/211bad695826b5032d02 to your computer and use it in GitHub Desktop.
Save lukepolo/211bad695826b5032d02 to your computer and use it in GitHub Desktop.
// Private Routes
Route::group(['middleware' => 'auth' , 'prefix' => $prefix, 'namespace' => 'Modules\Screenshot\Http\Controllers'], function()
{
Route::controllers([
'/' => 'ScreenshotController',
]);
});
// Public Routes
Route::group(['prefix' => $prefix, 'namespace' => 'Modules\Screenshot\Http\Controllers'], function()
{
Route::get('/', 'ScreenshotController@getIndex');
Route::get('preview', 'ScreenshotController@getPreview');
Route::get('prices', 'ScreenshotController@getPrices');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment