%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/dopla/www/wp-content/plugins/ml-slider/extendify-sdk/src/api/
Upload File :
Create Path :
Current File : /home/dopla/www/wp-content/plugins/ml-slider/extendify-sdk/src/api/Plugins.js

import { Axios as api } from './axios'

export const Plugins = {
    getInstalled() {
        return api.get('plugins')
    },
    installAndActivate(plugins = []) {
        const formData = new FormData()
        formData.append('plugins', JSON.stringify(plugins))
        return api.post('plugins', formData, {
            headers: {
                'Content-Type': 'multipart/form-data',
            },
        })
    },
    getActivated() {
        return api.get('active-plugins')
    },
}

Zerion Mini Shell 1.0