fix request
This commit is contained in:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user