mirror of
https://github.com/Shineii86/MiruroAPI.git
synced 2026-10-22 18:25:11 +00:00
Fix diagnostic sweep bugs — tags, random, 404s, security headers
- Tags: data.TagCollection→data.MediaTagCollection (was returning empty array) - Random: Math.random()*50→crypto.randomInt(1,500) for true randomness - Character/Staff: return 404 instead of 500 on not-found - Security: added X-XSS-Protection header - All 44 endpoints tested in full diagnostic sweep
This commit is contained in:
@@ -609,7 +609,7 @@ const getAllGenres = async () => {
|
||||
const getAllTags = async () => {
|
||||
const gql = `query { MediaTagCollection { name description category isGeneralSpoiler isMediaSpoiler isAdult } }`;
|
||||
const data = await anilistQuery(gql);
|
||||
return data.TagCollection;
|
||||
return data.MediaTagCollection;
|
||||
};
|
||||
|
||||
// ══════════════════════════════════════════════════════════════
|
||||
|
||||
Reference in New Issue
Block a user