blob: 2ddaeebaafb48c594389de58fe4fa17df72493f9 (
plain)
1
2
3
4
5
6
7
8
|
import { getURLAndInit } from 'm/request-helper';
const endpoint = '/rules';
export async function fetchRules(apiConfig) {
const { url, init } = getURLAndInit(apiConfig);
return await fetch(url + endpoint, init);
}
|