File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed
ui/src/views/BruciWebViews Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -86,7 +86,6 @@ import Footer from '@/components/NavbarAndFooter/Footer.vue'
8686import NavbarBweb from ' @/components/NavbarAndFooter/NavbarBweb.vue'
8787import store from ' @/store/visibilityStore'
8888import { publicApi } from " @/plugins/publicApi" ;
89- import { api } from ' @/plugins/api' ;
9089
9190export default {
9291 components: { Footer, NavbarBweb },
@@ -167,8 +166,8 @@ export default {
167166 methods: {
168167 created () {
169168 if (this .slug !== ' 0' ) {
170- api
171- .get (` ${ process . env . VUE_APP_BASE_URL } /sponsors/public/guests/` , {
169+ publicApi
170+ .get (` /sponsors/public/guests/` , {
172171 params: { slug: this .slug }
173172 })
174173 .then (response => {
@@ -182,8 +181,8 @@ export default {
182181 }
183182 },
184183 sponsorDelete (guest ) {
185- api .delete (
186- ` ${ process . env . VUE_APP_BASE_URL } /sponsors/public/guests/` ,
184+ publicApi .delete (
185+ ` /sponsors/public/guests/` ,
187186 { params: { slug: this .slug , id: guest .id } }
188187 ).then (() => {
189188 this .created ();
@@ -209,7 +208,7 @@ export default {
209208 name: guestName,
210209 };
211210
212- api .post (` ${ process . env . VUE_APP_BASE_URL } /sponsors/public/guests/` , payload)
211+ publicApi .post (` /sponsors/public/guests/` , payload)
213212 .then (() => {
214213 this .sponsorName = " " ;
215214 this .created ();
You can’t perform that action at this time.
0 commit comments