You've already forked AstralRinth
forked from didirus/AstralRinth
Allow editing of drafts
This commit is contained in:
@@ -266,6 +266,14 @@ export default {
|
|||||||
Multiselect,
|
Multiselect,
|
||||||
},
|
},
|
||||||
async asyncData(data) {
|
async asyncData(data) {
|
||||||
|
const config = {
|
||||||
|
headers: {
|
||||||
|
Authorization: data.$auth.getToken('local')
|
||||||
|
? data.$auth.getToken('local')
|
||||||
|
: '',
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
const [
|
const [
|
||||||
mod,
|
mod,
|
||||||
availableCategories,
|
availableCategories,
|
||||||
@@ -275,7 +283,10 @@ export default {
|
|||||||
// availableDonationPlatforms,
|
// availableDonationPlatforms,
|
||||||
] = (
|
] = (
|
||||||
await Promise.all([
|
await Promise.all([
|
||||||
axios.get(`https://api.modrinth.com/api/v1/mod/${data.params.id}`),
|
axios.get(
|
||||||
|
`https://api.modrinth.com/api/v1/mod/${data.params.id}`,
|
||||||
|
config
|
||||||
|
),
|
||||||
axios.get(`https://api.modrinth.com/api/v1/tag/category`),
|
axios.get(`https://api.modrinth.com/api/v1/tag/category`),
|
||||||
axios.get(`https://api.modrinth.com/api/v1/tag/loader`),
|
axios.get(`https://api.modrinth.com/api/v1/tag/loader`),
|
||||||
axios.get(`https://api.modrinth.com/api/v1/tag/game_version`),
|
axios.get(`https://api.modrinth.com/api/v1/tag/game_version`),
|
||||||
|
|||||||
Reference in New Issue
Block a user