fix request

This commit is contained in:
2023-09-15 18:45:05 +02:00
parent 94e8d03aa2
commit 7d946f49c4

View File

@@ -13,5 +13,5 @@ export type MarketType = {
portionSize: number;
}
export const getMarketType = async (id: number): Promise<MarketType> => (await apiAxiosInstance.get<MarketType>(`/sde/types/${id}`)).data;
export const getMarketType = async (id: number): Promise<MarketType> => (await apiAxiosInstance.get<MarketType>(`/sde/types/${id}/`)).data;
export const searchMarketType = async (name: string): Promise<MarketType> => (await apiAxiosInstance.post<MarketType[]>("/sde/types/search", [["name", name]])).data[0];