UNPKG

@shagital/adonisjs-crud-generator

Version:

Adonisjs Admin Panel Generator is a package that helps you quickly scaffold your typical CRUD admin interfaces. It generates the admin panel code based on the existing (migrated) table in the database

27 lines (20 loc) 444 B
import axios from 'axios'; const API = process.env.VUE_APP_BASE_URI || '{{baseUrl}}'; export default { updateProfile({ commit }, data) { return new Promise((resolve, reject) => { let url = `${API}/auth/complete`; axios.patch(url, data) .then(async ({ data }) => { resolve(data); }) .catch((error) => { reject(error.response) }); }); }, }