feat: add create center page (#595)

Fixes: #210
This commit is contained in:
Karan Takalkar
2020-05-14 17:57:27 +05:30
committed by GitHub
parent 60dee4651c
commit 3009f21482
9 changed files with 382 additions and 8 deletions
+9
View File
@@ -42,4 +42,13 @@ export class GroupsService {
return this.http.get('/groups', { params: httpParams });
}
/**
* @param {number} officeId Office Id of office to get groups for.
* @returns {Observable<any>}
*/
getGroupsByOfficeId(officeId: number): Observable<any> {
const httpParams = new HttpParams().set('officeId', officeId.toString());
return this.http.get('/groups', { params: httpParams } );
}
}