Advent22 api_url overloads

This commit is contained in:
Jörn-Michael Miehe 2023-09-07 15:15:12 +00:00
parent 79fc7dc89d
commit 35257b227a

View file

@ -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;