WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit 5092e31

Browse files
committed
added public api for fething sponsors and lineup
1 parent f4025ef commit 5092e31

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

ui/src/store/lineupStore.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { createStore } from 'vuex'
22
import { api } from '@/plugins/api'
3+
import { publicApi } from '@/plugins/publicApi'
34

45
export default createStore({
56
state: {
@@ -130,7 +131,7 @@ export default createStore({
130131
async fetchVisible({ commit }) {
131132
commit('SET_LOADING', true); commit('SET_ERROR', null)
132133
try {
133-
const { data } = await api.get('/public/lineup/', {
134+
const { data } = await publicApi.get('/public/lineup/', {
134135
params: { ordering: 'order' },
135136
})
136137
commit('SET_LIST', data)

ui/src/store/sponsorsStore.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { createStore } from 'vuex'
22
import { api } from '@/plugins/api'
3+
import { publicApi } from '@/plugins/publicApi'
34

45
export default createStore({
56
state: {
@@ -132,7 +133,7 @@ export default createStore({
132133
async fetchVisible({ commit }) {
133134
commit('SET_LOADING', true); commit('SET_ERROR', null)
134135
try {
135-
const { data } = await api.get('/public/sponsors/', {
136+
const { data } = await publicApi.get('/public/sponsors/', {
136137
params: { ordering: 'order' },
137138
})
138139
commit('SET_LIST', data)

0 commit comments

Comments
 (0)