@sword-health/ui-http-mapper
Version:
UI clients tool for consumption of easy to read/config endpoint maps
19 lines (17 loc) • 371 B
JavaScript
import user from './endpoints/userEndpoints.js';
import patient from './endpoints/patientEndpoints.js';
export default {
data: {
apiUrls: {
central: 'http://centralUrl.com',
localized: 'http://localizedUrl.com',
},
headers: {
authorization: () => ({ Authorization: 'dummy-token' }),
},
},
modules: {
user,
patient,
}
};