fix request
This commit is contained in:
1 parent
94e8d03aa2
commit
7d946f49c4
1 file changed
+1
-1
@@ -13,5 +13,5 @@ export type MarketType = {
|
|||||||
portionSize: number;
|
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];
|
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