fix localhost

This commit is contained in:
lasse 2025-05-27 15:20:05 +02:00
parent 81575e401d
commit a97554bf32

View File

@ -1,6 +1,6 @@
import { Product, ProductCreate, Shop, ShopCreate, ShoppingEvent, ShoppingEventCreate, Brand, BrandCreate, Grocery, GroceryCreate, GroceryCategory, GroceryCategoryCreate } from '../types'; import { Product, ProductCreate, Shop, ShopCreate, ShoppingEvent, ShoppingEventCreate, Brand, BrandCreate, Grocery, GroceryCreate, GroceryCategory, GroceryCategoryCreate } from '../types';
const API_BASE_URL = 'http://localhost:8000'; const API_BASE_URL = '/api';
const api = { const api = {
get: <T>(url: string): Promise<{ data: T }> => get: <T>(url: string): Promise<{ data: T }> =>