[web] Change the remotes API calls

This commit is contained in:
Alain Nussbaumer 2025-05-11 20:44:50 +02:00
parent c34c5eb585
commit 8048bb15ff

View File

@ -1,10 +1,12 @@
import api from '@/api'
const BASE_URL = './api/pairing'
export default {
pair(pin) {
return api.post('./api/pairing', { pin })
return api.post(BASE_URL, { pin })
},
state() {
return api.get('./api/pairing')
return api.get(BASE_URL)
}
}