UNPKG

vinmonopolet-ts

Version:

Extracts information on products, categories and stores from Vinmonopolet

9 lines (8 loc) 385 B
import { VINMONOPOLET_STORE_URL } from "../../constants"; import { toPopulatedStore } from "../../models/store/mapper"; import { GET } from "../../util/GET"; const getStore = async (store_id) => { const response = await GET(`${VINMONOPOLET_STORE_URL}${store_id}`, new URLSearchParams({ fields: "FULL" })); return toPopulatedStore(response); }; export default getStore;