initial
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
import axios from 'axios';
|
||||
|
||||
const $ax = axios.create({
|
||||
baseURL: '/api/'
|
||||
})
|
||||
|
||||
export default {
|
||||
install: (app, options) => {
|
||||
app.config.globalProperties.$api = {
|
||||
gameObject:{
|
||||
async save(data){
|
||||
return await $ax.put('/game-object', data);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user