Skip to content

Instantly share code, notes, and snippets.

@chenkie
Created August 11, 2015 15:35
Show Gist options
  • Save chenkie/6ce7cf7cbabc4e35f46c to your computer and use it in GitHub Desktop.
Save chenkie/6ce7cf7cbabc4e35f46c to your computer and use it in GitHub Desktop.
Route::group(['middleware' => 'jwt.auth'], function() {
Route::group(['prefix' => 'api', function() {
Route::resource('authenticate', 'AuthenticateController', ['only' => ['index']]);
Route::post('authenticate', 'AuthenticateController@authenticate');
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment