Store baseUrl as URL and build endpoints with new URL(path, base). Accept URL | string in fetchJSON to avoid unnecessary .href calls. Signed-off-by: Émile Ré <emile@getprobo.com>
Store baseUrl as URL and build endpoints with new URL(path, base). Accept URL | string in fetchJSON to avoid unnecessary .href calls. Signed-off-by: Émile Ré <emile@getprobo.com>