@lfai/egeria-js-commons
Version:
Common module for storing static data such as key value objects, SVGs, icon mappings, API urls.
15 lines (14 loc) • 598 B
JavaScript
import { API_URL } from '../commons/constants';
import { fetchRawData, fetchTypes } from './assets';
import { glossaries } from './data/glossaries';
import { lineage } from './data/lineage';
import { types } from './data/types';
import { API_ASSETS_SEARCH_PATH, API_ASSETS_TYPES_PATH, API_LOGIN_PATH } from './routes';
const apiUrl = () => {
return `${API_URL}`;
};
function goHome() {
console.log('WENT HOME');
window.location.href = '/';
}
export { API_ASSETS_SEARCH_PATH, API_ASSETS_TYPES_PATH, API_LOGIN_PATH, apiUrl, fetchRawData, fetchTypes, glossaries, goHome, lineage, types };