mirror of
				https://github.com/Unleash/unleash.git
				synced 2025-10-27 11:02:16 +01:00 
			
		
		
		
	fix: move all api calls to store folders
This commit is contained in:
		
							parent
							
								
									b8277f01ac
								
							
						
					
					
						commit
						24899b40e0
					
				| @ -1,4 +1,4 @@ | ||||
| import api from '../../data/applications-api'; | ||||
| import api from './api'; | ||||
| import { dispatchAndThrow } from '../util'; | ||||
| import { MUTE_ERROR } from '../error/actions'; | ||||
| 
 | ||||
|  | ||||
| @ -1,4 +1,4 @@ | ||||
| import { throwIfNotSuccess, headers } from './helper'; | ||||
| import { throwIfNotSuccess, headers } from '../api-helper'; | ||||
| 
 | ||||
| const URI = 'api/admin/metrics/applications'; | ||||
| 
 | ||||
| @ -1,4 +1,4 @@ | ||||
| import api from '../../data/archive-api'; | ||||
| import api from './api'; | ||||
| import { dispatchAndThrow } from '../util'; | ||||
| 
 | ||||
| export const REVIVE_TOGGLE = 'REVIVE_TOGGLE'; | ||||
|  | ||||
| @ -1,4 +1,4 @@ | ||||
| import { throwIfNotSuccess, headers } from './helper'; | ||||
| import { throwIfNotSuccess, headers } from '../api-helper'; | ||||
| 
 | ||||
| const URI = 'api/admin/archive'; | ||||
| 
 | ||||
| @ -1,4 +1,4 @@ | ||||
| import api from '../../data/context-api'; | ||||
| import api from './api'; | ||||
| import { dispatchAndThrow } from '../util'; | ||||
| 
 | ||||
| export const RECEIVE_CONTEXT = 'RECEIVE_CONTEXT'; | ||||
|  | ||||
| @ -1,4 +1,4 @@ | ||||
| import { throwIfNotSuccess, headers } from './helper'; | ||||
| import { throwIfNotSuccess, headers } from '../api-helper'; | ||||
| 
 | ||||
| const URI = 'api/admin/context'; | ||||
| 
 | ||||
| @ -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 RECEIVE_FEATURE_METRICS = 'RECEIVE_FEATURE_METRICS'; | ||||
|  | ||||
| @ -1,4 +1,4 @@ | ||||
| import { throwIfNotSuccess } from './helper'; | ||||
| import { throwIfNotSuccess } from '../api-helper'; | ||||
| 
 | ||||
| const URI = 'api/admin/metrics/feature-toggles'; | ||||
| 
 | ||||
| @ -1,4 +1,4 @@ | ||||
| import api from '../../data/feature-api'; | ||||
| import api from './api'; | ||||
| const debug = require('debug')('unleash:feature-actions'); | ||||
| import { dispatchAndThrow } from '../util'; | ||||
| import { MUTE_ERROR } from '../error/actions'; | ||||
|  | ||||
| @ -1,4 +1,4 @@ | ||||
| import { throwIfNotSuccess, headers } from './helper'; | ||||
| import { throwIfNotSuccess, headers } from '../api-helper'; | ||||
| 
 | ||||
| const URI = 'api/admin/features'; | ||||
| 
 | ||||
| @ -1,4 +1,4 @@ | ||||
| import api from '../../data/feature-type-api'; | ||||
| import api from './api'; | ||||
| import { dispatchAndThrow } from '../util'; | ||||
| 
 | ||||
| export const RECEIVE_FEATURE_TYPES = 'RECEIVE_FEATURE_TYPES'; | ||||
|  | ||||
| @ -1,4 +1,4 @@ | ||||
| import { throwIfNotSuccess } from './helper'; | ||||
| import { throwIfNotSuccess } from '../api-helper'; | ||||
| 
 | ||||
| const URI = 'api/admin/feature-types'; | ||||
| 
 | ||||
| @ -1,4 +1,4 @@ | ||||
| import api from '../../data/history-api'; | ||||
| import api from './api'; | ||||
| import { dispatchAndThrow } from '../util'; | ||||
| 
 | ||||
| export const RECEIVE_HISTORY = 'RECEIVE_HISTORY'; | ||||
|  | ||||
| @ -1,4 +1,4 @@ | ||||
| import { throwIfNotSuccess } from './helper'; | ||||
| import { throwIfNotSuccess } from '../api-helper'; | ||||
| 
 | ||||
| const URI = 'api/admin/events'; | ||||
| 
 | ||||
| @ -1,4 +1,4 @@ | ||||
| import api from '../../data/project-api'; | ||||
| import api from './api'; | ||||
| import { dispatchAndThrow } from '../util'; | ||||
| 
 | ||||
| export const RECEIVE_PROJECT = 'RECEIVE_PROJECT'; | ||||
|  | ||||
| @ -1,4 +1,4 @@ | ||||
| import { throwIfNotSuccess, headers } from './helper'; | ||||
| import { throwIfNotSuccess, headers } from '../api-helper'; | ||||
| 
 | ||||
| const URI = 'api/admin/projects'; | ||||
| 
 | ||||
| @ -1,5 +1,5 @@ | ||||
| import api from '../../data/strategy-api'; | ||||
| import applicationApi from '../../data/applications-api'; | ||||
| import api from './api'; | ||||
| import applicationApi from '../application/api'; | ||||
| import { dispatchAndThrow } from '../util'; | ||||
| 
 | ||||
| export const ADD_STRATEGY = 'ADD_STRATEGY'; | ||||
|  | ||||
| @ -1,4 +1,4 @@ | ||||
| import { throwIfNotSuccess, headers } from './helper'; | ||||
| import { throwIfNotSuccess, headers } from '../api-helper'; | ||||
| 
 | ||||
| const URI = 'api/admin/strategies'; | ||||
| 
 | ||||
| @ -1,4 +1,4 @@ | ||||
| import api from '../../data/config-api'; | ||||
| import api from './api'; | ||||
| import { dispatchAndThrow } from '../util'; | ||||
| 
 | ||||
| export const RECEIVE_CONFIG = 'RECEIVE_CONFIG'; | ||||
|  | ||||
| @ -1,4 +1,4 @@ | ||||
| import { throwIfNotSuccess } from './helper'; | ||||
| import { throwIfNotSuccess } from '../api-helper'; | ||||
| 
 | ||||
| const URI = 'api/admin/ui-config'; | ||||
| 
 | ||||
| @ -1,4 +1,4 @@ | ||||
| import api from '../../data/user-api'; | ||||
| import api from './api'; | ||||
| import { dispatchAndThrow } from '../util'; | ||||
| export const UPDATE_USER = 'UPDATE_USER'; | ||||
| export const USER_LOGOUT = 'USER_LOGOUT'; | ||||
|  | ||||
| @ -1,4 +1,4 @@ | ||||
| import { throwIfNotSuccess, headers } from './helper'; | ||||
| import { throwIfNotSuccess, headers } from '../api-helper'; | ||||
| 
 | ||||
| const URI = 'api/admin/user'; | ||||
| 
 | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user