mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-27 00:55:01 +00:00
7 lines
311 B
TypeScript
7 lines
311 B
TypeScript
import {fetchResults} from "./apiMethods";
|
|
import {Location, LocationType} from "../../types";
|
|
|
|
export const getLocations = (): Promise<Location[]> => fetchResults('/api/1.0/main/location.json');
|
|
|
|
export const getLocationTypes = (): Promise<LocationType[]> => fetchResults('/api/1.0/main/location-type.json');
|