Skip to content

Commit

Permalink
fixed all frontend API URLS
Browse files Browse the repository at this point in the history
  • Loading branch information
jabelone committed Aug 28, 2023
1 parent cc5259c commit 74482ad
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions src-frontend/src/components/AccessList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ export default {
if (!this.memberId) return;
const device = type === 'interlock' ? 'interlocks' : 'doors';
this.$axios
.put(`api/access/${device}/${deviceId}/authorise/${memberId}/`)
.put(`/api/access/${device}/${deviceId}/authorise/${memberId}/`)
.then(() => {
this.getMemberAccess();
})
Expand All @@ -176,7 +176,7 @@ export default {
if (!this.memberId) return;
const device = type === 'interlock' ? 'interlocks' : 'doors';
this.$axios
.put(`api/access/${device}/${deviceId}/revoke/${memberId}/`)
.put(`/api/access/${device}/${deviceId}/revoke/${memberId}/`)
.then(() => {
this.getMemberAccess();
})
Expand Down
2 changes: 1 addition & 1 deletion src-frontend/src/components/Billing/SelectTier.vue
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ export default defineComponent({
this.disableFinish = true;
this.loading = true;
this.$axios
.post(`api/billing/plans/${this.selectedPlan.id}/signup/`)
.post(`/api/billing/plans/${this.selectedPlan.id}/signup/`)
.then((response) => {
if (response.data.success) {
this.finishSuccess = true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ export default defineComponent({
this.updateInductionStatus();
}, 10000);
api.get('api/billing/can-signup/').then((result) => {
api.get('/api/billing/can-signup/').then((result) => {
if (result.data.success) {
this.step = 3; // skip straight to the end
} else {
Expand Down
2 changes: 1 addition & 1 deletion src-frontend/src/components/DigitalIdCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export default {
},
methods: {
getIdToken() {
this.$axios.get('api/profile/idtoken/').then((result) => {
this.$axios.get('/api/profile/idtoken/').then((result) => {
QRCode.toDataURL(result.data.token, async (err, url) => {
this.qrcode = url;
});
Expand Down
2 changes: 1 addition & 1 deletion src-frontend/src/components/ProxyForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ export default {
submitProxy() {
this.loading = true;
this.$axios
.post('api/proxies/', {
.post('/api/proxies/', {
meeting: this.meeting.id,
memberCity: this.memberCity,
proxy: this.proxy.member.id,
Expand Down
8 changes: 4 additions & 4 deletions src-frontend/src/pages/MembershipPlan.vue
Original file line number Diff line number Diff line change
Expand Up @@ -151,15 +151,15 @@ export default defineComponent({
methods: {
...mapActions('profile', ['getProfile']),
getSubscriptionInfo() {
this.$axios.get('api/billing/myplan/').then((result) => {
this.$axios.get('/api/billing/myplan/').then((result) => {
if (result.data.success) {
this.subscriptionInfo = result.data.subscription;
}
});
},
getCanSignup() {
this.$axios
.get('api/billing/can-signup/')
.get('/api/billing/can-signup/')
.then((result) => {
if (result.data.success) {
this.canSignup = true;
Expand Down Expand Up @@ -188,7 +188,7 @@ export default defineComponent({
this.disableButton = true;
this.loadingButton = true;
this.$axios
.post('api/billing/myplan/cancel/')
.post('/api/billing/myplan/cancel/')
.then((result) => {
if (result.data.success) {
this.cancelSuccess = true;
Expand Down Expand Up @@ -219,7 +219,7 @@ export default defineComponent({
this.disableButton = true;
this.loadingButton = true;
this.$axios
.post('api/billing/myplan/resume/')
.post('/api/billing/myplan/resume/')
.then((result) => {
if (result.data.success) {
location.reload();
Expand Down
2 changes: 1 addition & 1 deletion src-frontend/src/pages/VerifyEmail.vue
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export default {
},
mounted() {
this.$axios
.post(`api/email/${this.verifyToken}/verify/`)
.post(`/api/email/${this.verifyToken}/verify/`)
.then(() => {
/* eslint-disable */
this.verifyError = false;
Expand Down

0 comments on commit 74482ad

Please sign in to comment.