/* |-------------------------------------------------------------------------- | Application Routes |-------------------------------------------------------------------------- | | Here is where you can register all of the routes for an application. | It's a breeze. Simply tell Laravel the URIs it should respond to | and give it the controller to call when that URI is requested. | */
Route::group(['middleware' => 'cors'], function(Router $router){
});
Route::group([
'prefix' => 'api/v1', 'namespace' => 'Api'
], function () {
Route::post('/auth/register', [
'as' => 'auth.register',
'uses' => 'AuthController@register'
]);
Route::post('/auth/login', [
'as' => 'auth.login',
'uses' => 'AuthController@login'
]);
});
I want to add the prefix group route inside the middleware route, how can i achieve that.
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/1oMAOhr
via IFTTT
Aucun commentaire:
Enregistrer un commentaire