feat: add add-code component (#310)

This commit is contained in:
Chirag Gupta
2018-10-25 21:47:21 +05:30
committed by Abhay Chawla
parent 04ff1abcc4
commit dffce8a5e0
8 changed files with 145 additions and 6 deletions
+8
View File
@@ -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);
}
}