mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
update services api routes
This commit is contained in:
parent
9657fc410e
commit
e94d43566a
1 changed files with 1 additions and 7 deletions
|
@ -120,13 +120,7 @@ export default {
|
|||
)
|
||||
if (!confirmed) return
|
||||
|
||||
if (!['start', 'restart', 'stop'].includes(action)) return
|
||||
const method = action === 'stop' ? 'delete' : 'put'
|
||||
const uri = action === 'restart'
|
||||
? `services/${this.name}/restart`
|
||||
: 'services/' + this.name
|
||||
|
||||
api[method](uri).then(this.$refs.view.fetchQueries)
|
||||
api.put(`services/${this.name}/${action}`).then(this.$refs.view.fetchQueries)
|
||||
},
|
||||
|
||||
shareLogs () {
|
||||
|
|
Loading…
Add table
Reference in a new issue