feat: add create survey component (#579)

Fixes: #185
This commit is contained in:
punwai
2020-08-13 08:24:06 +05:30
committed by GitHub
parent 2f3005cab8
commit 6f3b6c40e7
14 changed files with 496 additions and 7 deletions
+8
View File
@@ -213,6 +213,14 @@ export class SystemService {
return this.http.get('/surveys');
}
/**
* @param {any} survey Survey to be created.
* @returns {Observable<any>}
*/
createSurvey(survey: any): Observable<any> {
return this.http.post('/surveys', survey);
}
/**
* @returns {Observable<any>} Fetches Jobs.
*/