mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/izyim.git
synced 2026-08-19 04:24:00 +00:00
Merge branch 'Account' into 'master'
user invitations fix See merge request CIEFWorldwideSdnBhd/izyim!10
This commit is contained in:
@@ -46,7 +46,7 @@
|
||||
//turn on loading animation
|
||||
this.isLoading = true;
|
||||
|
||||
var url = route('api.account.invite'),
|
||||
var url = route('api.account.invite.create'),
|
||||
method = 'post';
|
||||
|
||||
fetch(url, {
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
//turn on loading animation
|
||||
this.isLoading = true;
|
||||
|
||||
fetch(route('api.account.list.invite') + '?page='+ page).then(response => response.json())
|
||||
fetch(route('api.account.invite.list') + '?page='+ page).then(response => response.json())
|
||||
.then(response => {
|
||||
|
||||
this.accounts = response.data;
|
||||
|
||||
+5
-3
@@ -18,9 +18,11 @@ Route::group(['middleware' => 'api', 'prefix' => 'v1', 'as' => 'api.'], function
|
||||
// Account Routes
|
||||
Route::group(['prefix' => 'account', 'as' => 'account.', 'namespace' => 'Account'], function () {
|
||||
Route::post('/create', 'RegisterAccountController@register')->name('create');
|
||||
Route::post('/invite', 'InviteUserController@invite')->name('invite');
|
||||
Route::post('/test', 'CreateUserController@execute')->name('test');
|
||||
Route::get('/list/active', 'ListUserController@list')->name('list');
|
||||
Route::group(['prefix' => 'invite', 'as' => 'invite.'], function () {
|
||||
Route::post('/invite', 'InviteUserController@invite')->name('create');
|
||||
Route::get('/list/active', 'ListUserController@list')->name('list');
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
// Companies Routes
|
||||
|
||||
Reference in New Issue
Block a user