mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-04-04 06:19:44 +00:00
reg test
This commit is contained in:
committed by
Aiden McClelland
parent
edc37e33f1
commit
dc71a625b2
@@ -44,6 +44,11 @@ export class HttpService {
|
||||
if (isRpcSuccess(res)) return res.result
|
||||
}
|
||||
|
||||
async simpleGet (url: string): Promise<object> {
|
||||
const data = await this.http.get(url).toPromise()
|
||||
return data
|
||||
}
|
||||
|
||||
async httpRequest<T> (httpOpts: HttpOptions): Promise<T> {
|
||||
let { body, timeout, ...rest} = this.translateOptions(httpOpts)
|
||||
let req: Observable<{ body: T }>
|
||||
|
||||
Reference in New Issue
Block a user