upload attachment

This commit is contained in:
Peter Maquiran
2024-08-13 17:05:46 +01:00
parent 251f533a68
commit d7eb6a552b
20 changed files with 436 additions and 152 deletions
+2 -2
View File
@@ -19,9 +19,9 @@ export class HttpService {
}
}
async get<T>(url: string): Promise<Result<T, HttpErrorResponse>> {
async get<T>(url: string, options ={}): Promise<Result<T, HttpErrorResponse>> {
try {
const result = await this.http.get<T>(url).toPromise()
const result = await this.http.get<T>(url, options).toPromise()
return ok (result as T)
} catch (e) {
return err(e as HttpErrorResponse)