vikunja-frontend/src/config.js

16 lines
260 B
JavaScript
Raw Normal View History

2019-09-09 19:32:57 +02:00
import {HTTP} from './http-common'
export default {
config: null,
getConfig() {
return this.config
},
initConfig() {
return HTTP.get('info')
.then(r => {
this.config = r.data
})
}
}