feat: add add-code component (#310)
This commit is contained in:
committed by
Abhay Chawla
parent
04ff1abcc4
commit
dffce8a5e0
@@ -25,4 +25,12 @@ export class SystemService {
|
||||
return this.http.get('/codes');
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {any} code Code to be created.
|
||||
* @returns {Observable<any>}
|
||||
*/
|
||||
createCode(code: any): Observable<any> {
|
||||
return this.http.post('/codes', code);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user