mirror of
https://code.lenaisten.de/Lenaisten/advent22.git
synced 2024-12-24 21:43:00 +00:00
Advent22 api_url overloads
This commit is contained in:
parent
79fc7dc89d
commit
35257b227a
1 changed files with 2 additions and 0 deletions
|
@ -24,6 +24,8 @@ export class Advent22 {
|
|||
return `//${window.location.hostname}:8000/api`;
|
||||
}
|
||||
|
||||
public api_url(): string;
|
||||
public api_url(endpoint: string): string;
|
||||
public api_url(endpoint?: string): string {
|
||||
if (endpoint === undefined) {
|
||||
return this.api_baseurl;
|
||||
|
|
Loading…
Reference in a new issue