Richiesta Cambio Password: ti manda il codice a 6 cifre e poterlo inserire sulla APP.

This commit is contained in:
Surya Paolo
2022-12-11 18:04:11 +01:00
parent cf990db03a
commit c743977b66
9 changed files with 146 additions and 44 deletions

View File

@@ -1,19 +1,24 @@
import axios from 'axios'
import { boot } from 'quasar/wrappers'
const api = axios.create({ baseURL: process.env.MONGODB_HOST })
const api = axios.create({
baseURL: process.env.MONGODB_HOST,
headers: {
'Content-type': 'application/json',
},
})
export default boot(({ app }) => {
// for use inside Vue files (Options API) through this.$axios and this.$api
// for use inside Vue files (Options API) through this.$axios and this.$api
app.config.globalProperties.$axios = axios
// ^ ^ ^ this will allow you to use this.$axios (for Vue Options API form)
// so you won't necessarily have to import axios in each vue file
app.config.globalProperties.$api = api
// ^ ^ ^ this will allow you to use this.$api (for Vue Options API form)
// so you can easily perform requests against your app's API
//
// ^ ^ ^ this will allow you to use this.$api (for Vue Options API form)
// so you can easily perform requests against your app's API
//
})
export { axios }