diff --git a/components/ModPage.vue b/components/ModPage.vue index b09576594..9cef42232 100644 --- a/components/ModPage.vue +++ b/components/ModPage.vue @@ -38,7 +38,7 @@
@@ -458,34 +458,18 @@ export default { elem.click() }, async followMod() { - const config = { - headers: { - Authorization: this.$auth.getToken('local') - ? this.$auth.getToken('local') - : '', - }, - } - await axios.post( `https://api.modrinth.com/api/v1/mod/${this.mod.id}/follow`, {}, - config + this.$auth.headers ) this.userFollows.push(this.mod.id) }, async unfollowMod() { - const config = { - headers: { - Authorization: this.$auth.getToken('local') - ? this.$auth.getToken('local') - : '', - }, - } - await axios.delete( `https://api.modrinth.com/api/v1/mod/${this.mod.id}/follow`, - config + this.$auth.headers ) this.userFollows.splice(this.userFollows.indexOf(this.mod.id), 1) diff --git a/layouts/default.vue b/layouts/default.vue index cef2afbb8..e72ef2edb 100644 --- a/layouts/default.vue +++ b/layouts/default.vue @@ -18,7 +18,7 @@ Mods -
+
Dashboard @@ -28,7 +28,7 @@
-