Consistent build api url & updated base to /api/v1

This commit is contained in:
2022-12-29 23:39:56 +01:00
parent a936283be1
commit 469074d75b
6 changed files with 8 additions and 20 deletions

View File

@@ -52,7 +52,7 @@ function sitemapPages(): string {
}
async function sitemapShopPages(): Promise<string> {
const res = await fetch('/api/products');
const res = await fetch('/api/v1/products');
const productResponse: IProductsDTO = await res.json();
return productResponse?.products