mirror of
https://github.com/Shineii86/MiruroAPI.git
synced 2026-10-22 10:15:10 +00:00
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}
29 lines
1.4 KiB
Markdown
29 lines
1.4 KiB
Markdown
# Changelog
|
|
|
|
## v1.2.0
|
|
- Fixed critical response format bug: all endpoints now return {success: true, results: data}
|
|
- Root cause: createApiRoutes() had (app, jsonResponse, jsonError) but was called with (jsonResponse, jsonError), shifting all params
|
|
- Every jsonResponse() call was actually calling jsonError(), returning {success: false, message: data}
|
|
- Health endpoint worked because it used res.json() directly, bypassing the wrapper
|
|
- All 18 endpoints verified working: health, stats, search, suggestions, filter, trending, popular, upcoming, recent, spotlight, schedule, info, characters, relations, recommendations, episodes, watch
|
|
|
|
## v1.1.0
|
|
- Added Swagger UI interactive docs at /docs
|
|
- Added OpenAPI 3.0 spec at /openapi.json
|
|
- Added mappings field in episodes response (anilistId, malId, kitsuId)
|
|
- Added Docker support (Dockerfile + .dockerignore)
|
|
- Improved landing page with premium design (Walter-style)
|
|
- Added "Try it" buttons on all endpoints
|
|
- Health endpoint now includes version, providers list, and endpoint count
|
|
- Version bump to 1.1.0
|
|
|
|
## v1.0.0
|
|
- Initial release
|
|
- AniList GraphQL integration for anime metadata
|
|
- Miruro pipe integration for streaming sources
|
|
- 16 API endpoints: search, suggestions, trending, popular, upcoming, recent, spotlight, schedule, filter, info, characters, relations, recommendations, episodes, sources, watch
|
|
- In-memory caching with TTL
|
|
- CORS support
|
|
- Health endpoint
|
|
- Deployed on Vercel
|