feat: add add-role component (#494)

Fixes: #487
This commit is contained in:
pwai
2019-12-03 23:12:00 +03:00
committed by Abhay Chawla
parent ba184db6e4
commit 091458765c
8 changed files with 156 additions and 6 deletions
+8
View File
@@ -39,6 +39,14 @@ export class SystemService {
return this.http.get('/roles');
}
/**
* @param {any} role Role to be created.
* @returns {Observable<any>}
*/
createRole(role: any): Observable<any> {
return this.http.post('/roles', role);
}
/**
* @returns {Observable<any>} Fetches Codes.
*/