mirror of
https://code.lenaisten.de/Lenaisten/advent22.git
synced 2024-11-23 00:03:07 +00:00
Advent22 axios timeout
This commit is contained in:
parent
1866833d3d
commit
79fc7dc89d
1 changed files with 3 additions and 1 deletions
|
@ -6,7 +6,9 @@ export class Advent22 {
|
||||||
private api_auth = { username: "", password: "" };
|
private api_auth = { username: "", password: "" };
|
||||||
|
|
||||||
public constructor() {
|
public constructor() {
|
||||||
this.axios = axios.create();
|
this.axios = axios.create({
|
||||||
|
timeout: 10000,
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
private get api_baseurl(): string {
|
private get api_baseurl(): string {
|
||||||
|
|
Loading…
Reference in a new issue