Mod creation WIP

This commit is contained in:
Jai A
2020-10-12 22:33:56 -07:00
parent 80b470cfd3
commit bc998988c2
7 changed files with 237 additions and 73 deletions

View File

@@ -41,11 +41,16 @@ import axios from 'axios'
export default {
async fetch() {
try {
const res = await axios.get(
`https://api.modrinth.com/api/v1/${this.$auth.user.id}/mods`
let res = await axios.get(
`https://api.modrinth.com/api/v1/user/${this.$auth.user.id}/mods`
)
this.mods = res.data
if (res.data) {
res = await axios.get(
`https://api.modrinth.com/api/v1/mods?ids=${JSON.stringify(res.data)}`
)
this.mods = res.data
}
} catch (err) {}
},
data() {