Set up paths & namespace to match versioned routes

This commit is contained in:
Bubka
2021-11-07 21:57:22 +01:00
parent 0f17d93152
commit 7efa86b232
47 changed files with 98 additions and 94 deletions

View File

@ -94,7 +94,7 @@
if( id ) {
this.internal_id = id
const { data } = await this.axios.get('api/twofaccounts/' + this.internal_id)
const { data } = await this.axios.get('api/v1/twofaccounts/' + this.internal_id)
this.internal_service = data.service
this.internal_account = data.account
@ -132,17 +132,17 @@
getOtp: async function() {
if(this.internal_id) {
const { data } = await this.axios.get('/api/twofaccounts/' + this.internal_id + '/otp')
const { data } = await this.axios.get('/api/v1/twofaccounts/' + this.internal_id + '/otp')
return data
}
else if(this.internal_uri) {
const { data } = await this.axios.post('/api/twofaccounts/otp', {
const { data } = await this.axios.post('/api/v1/twofaccounts/otp', {
uri: this.internal_uri
})
return data
}
else {
const { data } = await this.axios.post('/api/twofaccounts/otp', {
const { data } = await this.axios.post('/api/v1/twofaccounts/otp', {
service : this.internal_service,
account : this.internal_account,
icon : this.internal_icon,