leumas-universal-crud-react
Version:
Leumas Universal CRUD to a dynamic Endpoint, Setup your own Dynamic Endpoint and Use Leumas API to send to your MONGO clusters
11 lines (7 loc) • 308 B
JSX
// LeumasLogin.js (or apiClientLogin.js)
import apiBaseClient from './APIClientHelper';
const baseURL = `${import.meta.env.VITE_REACT_APP_LEUMAS_API_ENDPOINT}` || 'http://localhost:3002';
const LeumasServer = (token) => {
return apiBaseClient(baseURL, token);
}
export default LeumasServer;