Moved api calls to api directory

This commit is contained in:
2021-12-30 11:52:28 +03:00
parent f9f2efcad0
commit 52d8664134
9 changed files with 10 additions and 27 deletions

7
src/api/getPosition.ts Normal file
View File

@@ -0,0 +1,7 @@
import api from '@/api/index';
export default (id: String) => api.get('/position', {
params: {
id,
},
}).then((response) => response.data.position);