All server calls go through a shared axios instance (src/api.js) that gets a token with API_PASSWORD from the runtime config, renews it before it expires and retries once on 401. Character images are loaded with the token as blobs. Removes the unused express and cors dependencies and bumps the version to 1.2.0. Closes #2
5 lines
102 B
JavaScript
5 lines
102 B
JavaScript
window.__RUNTIME_CONFIG__ = {
|
|
API_HOSTNAME: '${API_HOSTNAME}',
|
|
API_PASSWORD: '${API_PASSWORD}'
|
|
};
|