Files
gancio/plugins/initialize.js
lesion 745b9247c9 .
2019-05-30 12:12:51 +02:00

10 lines
342 B
JavaScript

// TOFIX: not needed in any case (eg. embed)
export default async ({ store, $axios }) => {
const now = new Date()
const events = await $axios.$get(`/event/${now.getMonth()}/${now.getFullYear()}`)
store.commit('setEvents', events)
const { tags, places } = await $axios.$get('/event/meta')
store.commit('update', { tags, places })
}