Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F41989675
api.js
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
365 B
Referenced Files
None
Subscribers
None
api.js
View Options
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
Details
Attached
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)
Attached To
Mode
rSP ServPulse
Attached
Detach File
Event Timeline
Log In to Comment