Files
MiruroAPI/package.json
T
Sʜɪɴᴇɪ Nᴏᴜᴢᴇɴ 20041a8984 v1.2.0: fix critical response format bug (18/18 endpoints passing)
Root cause: createApiRoutes() parameter shift
- Function signature was (app, jsonResponse, jsonError)
- Called from server.js as apiRoutes(jsonResponse, jsonError)
- All params shifted: jsonResponse→jsonError, jsonError→undefined
- Every success response returned {success: false, message: data}
- Health worked because it used res.json() directly

Fix: Removed unused 'app' parameter from createApiRoutes()
All 18 endpoints now return {success: true, results: data}
2026-06-09 15:04:26 +05:30

29 lines
651 B
JSON

{
"name": "miruro-api",
"version": "1.2.0",
"description": "RESTful API for miruro.com - Anime streaming data powered by AniList GraphQL and Miruro streaming providers",
"main": "server.js",
"scripts": {
"start": "node server.js",
"dev": "node server.js",
"test": "node test.js"
},
"dependencies": {
"express": "^4.21.0",
"axios": "^1.8.0",
"cors": "^2.8.5",
"dotenv": "^16.4.0"
},
"keywords": [
"anime",
"api",
"miruro",
"anilist",
"streaming",
"m3u8",
"hls"
],
"author": "Sʜɪɴᴇɪ Nᴏᴜᴢᴇɴ <157171073+Shineii86@users.noreply.github.com>",
"license": "MIT"
}