mirror of
https://github.com/web3privacy/web
synced 2024-10-15 18:26:27 +02:00
new events data endpoint
This commit is contained in:
parent
8ec1fc72fe
commit
02da88627b
1 changed files with 3 additions and 3 deletions
|
@ -1,6 +1,6 @@
|
||||||
import YAML from 'npm:yaml'
|
import YAML from 'npm:yaml'
|
||||||
|
|
||||||
const response = await fetch("https://raw.githubusercontent.com/web3privacy/events/main/events/events.yaml")
|
const response = await fetch("https://data.web3privacy.info/")
|
||||||
const events = YAML.parse(await response.text())
|
const data = await response.json()
|
||||||
await Deno.writeTextFile("./src/events.json", JSON.stringify(events, null, 2))
|
await Deno.writeTextFile("./src/events.json", JSON.stringify(data.events, null, 2))
|
||||||
console.log(`File ./src/events.json saved`)
|
console.log(`File ./src/events.json saved`)
|
Loading…
Reference in a new issue