mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-11-30 11:53:53 +01:00
Added calendars plugin and improved used part
This commit is contained in:
@@ -3,16 +3,29 @@ import repository from './repository'
|
||||
const resource = 'parameters'
|
||||
|
||||
export default {
|
||||
getApplications() {
|
||||
return repository.get(`/${resource}/applications/`)
|
||||
getGlobalApplications() {
|
||||
return repository.get(`/${resource}/global/applications/`)
|
||||
},
|
||||
getApplication(app) {
|
||||
return repository.get(`/${resource}/${app}/`)
|
||||
getGlobalApplication(app) {
|
||||
return repository.get(`/${resource}/global/${app}/`)
|
||||
},
|
||||
getApplicationStructure(app) {
|
||||
return repository.get(`/${resource}/structure/?app=${app}`)
|
||||
getGlobalApplicationStructure(app) {
|
||||
return repository.get(`/${resource}/global/structure/?app=${app}`)
|
||||
},
|
||||
saveApplication(app, data) {
|
||||
return repository.put(`/${resource}/${app}/`, data)
|
||||
saveGlobalApplication(app, data) {
|
||||
return repository.put(`/${resource}/global/${app}/`, data)
|
||||
},
|
||||
|
||||
getUserApplications() {
|
||||
return repository.get(`/${resource}/user/applications/`)
|
||||
},
|
||||
getUserApplication(app) {
|
||||
return repository.get(`/${resource}/user/${app}/`)
|
||||
},
|
||||
getUserApplicationStructure(app) {
|
||||
return repository.get(`/${resource}/user/structure/?app=${app}`)
|
||||
},
|
||||
saveUserApplication(app, data) {
|
||||
return repository.put(`/${resource}/user/${app}/`, data)
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user