diff --git a/routes/account.php b/routes/account.php new file mode 100644 index 00000000..0aecd754 --- /dev/null +++ b/routes/account.php @@ -0,0 +1,11 @@ + 'account', 'namespace' => 'Accounts', 'as' => 'account.'], function () { + + Route::group(['prefix' => 'registration', 'as' => 'registration.'], function () { + Route::post('/registration', 'CreateCustomerController@create')->name('register'); + }); + +}); diff --git a/routes/api.php b/routes/api.php index bcb8b189..d390dc50 100644 --- a/routes/api.php +++ b/routes/api.php @@ -1,6 +1,5 @@ get('/user', function (Request $request) { - return $request->user(); +Route::group(['middleware' => 'api', 'prefix' => 'v1', 'as' => 'api.'], function () { + require __DIR__ . '/account.php'; });