21 lines
788 B
TypeScript
21 lines
788 B
TypeScript
|
|
// Module ID: 14193
|
||
|
|
// Function ID: 14194
|
||
|
|
// Name: fetchExperiments
|
||
|
|
// Dependencies: [1074, 1272, 2]
|
||
|
|
// Exports: fetchExperiments
|
||
|
|
|
||
|
|
// Module 14193 (fetchExperiments)
|
||
|
|
import Constants from "Constants" /* 1074 */;
|
||
|
|
import HTTPUtils from "HTTPUtils" /* 1272 */;
|
||
|
|
import size from "module_2" /* 2 */;
|
||
|
|
|
||
|
|
const Endpoints = Constants.Endpoints;
|
||
|
|
const result = size.fileFinishedImporting("modules/experiments/fetchExperiments.tsx");
|
||
|
|
|
||
|
|
export const fetchExperiments = function fetchExperiments(arg0) {
|
||
|
|
({ withGuildExperiments, headers, context } = arg0);
|
||
|
|
const HTTP = HTTPUtils.HTTP;
|
||
|
|
const request = { url: Endpoints.EXPERIMENTS, query: { with_guild_experiments: withGuildExperiments }, headers, context, retries: 3, oldFormErrors: true, rejectWithError: false };
|
||
|
|
return HTTP.get(request);
|
||
|
|
};
|