You've already forked AstralRinth
forked from didirus/AstralRinth
Use base URL for axios (#241)
* Switch site to use axios base url * Fix team invites * Fix find/replace setting the wrong thing * Fix analytics being blocking, small issues
This commit is contained in:
@@ -20,7 +20,7 @@ export const actions = {
|
||||
async fetchUser({ commit }, { token }) {
|
||||
try {
|
||||
const user = (
|
||||
await this.$axios.get(`https://api.modrinth.com/api/v1/user`, {
|
||||
await this.$axios.get(`user`, {
|
||||
headers: {
|
||||
Authorization: token,
|
||||
},
|
||||
|
||||
@@ -24,7 +24,7 @@ export const actions = {
|
||||
) {
|
||||
const notifications = (
|
||||
await this.$axios.get(
|
||||
`https://api.modrinth.com/api/v1/user/${rootState.auth.user.id}/notifications`,
|
||||
`user/${rootState.auth.user.id}/notifications`,
|
||||
rootState.auth.headers
|
||||
)
|
||||
).data
|
||||
|
||||
Reference in New Issue
Block a user