Page MenuHomeDevCentral

api.js
No OneTemporary

import axios from 'axios';
export async function fetchConfigData() {
try {
// # FIXME: `VUE_APP_CONFIG_API_ENDPOINT` is somehow not working from a .env (hardcoded the url for now)
const response = await axios.get('http://localhost:3000/api/config/getAll');
return response.data;
} catch (error) {
throw new Error('Failed to fetch the config data');
}
}

File Metadata

Mime Type
text/x-java
Expires
Sat, Aug 8, 09:04 (5 h, 42 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3975889
Default Alt Text
api.js (365 B)

Event Timeline