1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-25 00:07:47 +01:00

fix: move all api calls to store folders

This commit is contained in:
Ivar Conradi Østhus 2021-01-06 22:19:50 +01:00
parent b8277f01ac
commit 24899b40e0
23 changed files with 23 additions and 23 deletions

View File

@ -1,4 +1,4 @@
import api from '../../data/applications-api'; import api from './api';
import { dispatchAndThrow } from '../util'; import { dispatchAndThrow } from '../util';
import { MUTE_ERROR } from '../error/actions'; import { MUTE_ERROR } from '../error/actions';

View File

@ -1,4 +1,4 @@
import { throwIfNotSuccess, headers } from './helper'; import { throwIfNotSuccess, headers } from '../api-helper';
const URI = 'api/admin/metrics/applications'; const URI = 'api/admin/metrics/applications';

View File

@ -1,4 +1,4 @@
import api from '../../data/archive-api'; import api from './api';
import { dispatchAndThrow } from '../util'; import { dispatchAndThrow } from '../util';
export const REVIVE_TOGGLE = 'REVIVE_TOGGLE'; export const REVIVE_TOGGLE = 'REVIVE_TOGGLE';

View File

@ -1,4 +1,4 @@
import { throwIfNotSuccess, headers } from './helper'; import { throwIfNotSuccess, headers } from '../api-helper';
const URI = 'api/admin/archive'; const URI = 'api/admin/archive';

View File

@ -1,4 +1,4 @@
import api from '../../data/context-api'; import api from './api';
import { dispatchAndThrow } from '../util'; import { dispatchAndThrow } from '../util';
export const RECEIVE_CONTEXT = 'RECEIVE_CONTEXT'; export const RECEIVE_CONTEXT = 'RECEIVE_CONTEXT';

View File

@ -1,4 +1,4 @@
import { throwIfNotSuccess, headers } from './helper'; import { throwIfNotSuccess, headers } from '../api-helper';
const URI = 'api/admin/context'; const URI = 'api/admin/context';

View File

@ -1,4 +1,4 @@
import api from '../../data/feature-metrics-api'; import api from './api';
export const START_FETCH_FEATURE_METRICS = 'START_FETCH_FEATURE_METRICS'; export const START_FETCH_FEATURE_METRICS = 'START_FETCH_FEATURE_METRICS';
export const RECEIVE_FEATURE_METRICS = 'RECEIVE_FEATURE_METRICS'; export const RECEIVE_FEATURE_METRICS = 'RECEIVE_FEATURE_METRICS';

View File

@ -1,4 +1,4 @@
import { throwIfNotSuccess } from './helper'; import { throwIfNotSuccess } from '../api-helper';
const URI = 'api/admin/metrics/feature-toggles'; const URI = 'api/admin/metrics/feature-toggles';

View File

@ -1,4 +1,4 @@
import api from '../../data/feature-api'; import api from './api';
const debug = require('debug')('unleash:feature-actions'); const debug = require('debug')('unleash:feature-actions');
import { dispatchAndThrow } from '../util'; import { dispatchAndThrow } from '../util';
import { MUTE_ERROR } from '../error/actions'; import { MUTE_ERROR } from '../error/actions';

View File

@ -1,4 +1,4 @@
import { throwIfNotSuccess, headers } from './helper'; import { throwIfNotSuccess, headers } from '../api-helper';
const URI = 'api/admin/features'; const URI = 'api/admin/features';

View File

@ -1,4 +1,4 @@
import api from '../../data/feature-type-api'; import api from './api';
import { dispatchAndThrow } from '../util'; import { dispatchAndThrow } from '../util';
export const RECEIVE_FEATURE_TYPES = 'RECEIVE_FEATURE_TYPES'; export const RECEIVE_FEATURE_TYPES = 'RECEIVE_FEATURE_TYPES';

View File

@ -1,4 +1,4 @@
import { throwIfNotSuccess } from './helper'; import { throwIfNotSuccess } from '../api-helper';
const URI = 'api/admin/feature-types'; const URI = 'api/admin/feature-types';

View File

@ -1,4 +1,4 @@
import api from '../../data/history-api'; import api from './api';
import { dispatchAndThrow } from '../util'; import { dispatchAndThrow } from '../util';
export const RECEIVE_HISTORY = 'RECEIVE_HISTORY'; export const RECEIVE_HISTORY = 'RECEIVE_HISTORY';

View File

@ -1,4 +1,4 @@
import { throwIfNotSuccess } from './helper'; import { throwIfNotSuccess } from '../api-helper';
const URI = 'api/admin/events'; const URI = 'api/admin/events';

View File

@ -1,4 +1,4 @@
import api from '../../data/project-api'; import api from './api';
import { dispatchAndThrow } from '../util'; import { dispatchAndThrow } from '../util';
export const RECEIVE_PROJECT = 'RECEIVE_PROJECT'; export const RECEIVE_PROJECT = 'RECEIVE_PROJECT';

View File

@ -1,4 +1,4 @@
import { throwIfNotSuccess, headers } from './helper'; import { throwIfNotSuccess, headers } from '../api-helper';
const URI = 'api/admin/projects'; const URI = 'api/admin/projects';

View File

@ -1,5 +1,5 @@
import api from '../../data/strategy-api'; import api from './api';
import applicationApi from '../../data/applications-api'; import applicationApi from '../application/api';
import { dispatchAndThrow } from '../util'; import { dispatchAndThrow } from '../util';
export const ADD_STRATEGY = 'ADD_STRATEGY'; export const ADD_STRATEGY = 'ADD_STRATEGY';

View File

@ -1,4 +1,4 @@
import { throwIfNotSuccess, headers } from './helper'; import { throwIfNotSuccess, headers } from '../api-helper';
const URI = 'api/admin/strategies'; const URI = 'api/admin/strategies';

View File

@ -1,4 +1,4 @@
import api from '../../data/config-api'; import api from './api';
import { dispatchAndThrow } from '../util'; import { dispatchAndThrow } from '../util';
export const RECEIVE_CONFIG = 'RECEIVE_CONFIG'; export const RECEIVE_CONFIG = 'RECEIVE_CONFIG';

View File

@ -1,4 +1,4 @@
import { throwIfNotSuccess } from './helper'; import { throwIfNotSuccess } from '../api-helper';
const URI = 'api/admin/ui-config'; const URI = 'api/admin/ui-config';

View File

@ -1,4 +1,4 @@
import api from '../../data/user-api'; import api from './api';
import { dispatchAndThrow } from '../util'; import { dispatchAndThrow } from '../util';
export const UPDATE_USER = 'UPDATE_USER'; export const UPDATE_USER = 'UPDATE_USER';
export const USER_LOGOUT = 'USER_LOGOUT'; export const USER_LOGOUT = 'USER_LOGOUT';

View File

@ -1,4 +1,4 @@
import { throwIfNotSuccess, headers } from './helper'; import { throwIfNotSuccess, headers } from '../api-helper';
const URI = 'api/admin/user'; const URI = 'api/admin/user';