mirror of
https://github.com/KevinMidboe/planetposen-frontend.git
synced 2025-12-29 21:11:02 +00:00
Consistent build api url & updated base to /api/v1
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user