mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-20 05:16:07 +00:00
upload attachment
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user