mirror of
https://github.com/web3privacy/explorer-app.git
synced 2024-10-15 16:46:26 +02:00
6 lines
251 B
TypeScript
6 lines
251 B
TypeScript
export default defineEventHandler(async () => {
|
|
const { datasource } = useRuntimeConfig()
|
|
if (datasource === 'remote')
|
|
return $fetch('https://explorer-data.web3privacy.info/')
|
|
return await useStorage('assets:server').getItem('data.json')
|
|
})
|