mirror of
https://github.com/Shineii86/AniKotoAPI.git
synced 2026-10-22 02:45:10 +00:00
feat: Add new endpoints and enhance filter — v2.2.0
New Endpoints (4 new routes): - GET /api/upcoming — upcoming anime releases from homepage - GET /api/top-rankings?sort=top|newest — ranked anime with sort modes - GET /api/recently-updated?tab=all|dub|sub — filtered recent updates - GET /api/completed — finished anime series from homepage Enhanced Filter (/api/filter): - Added source parameter (18 source material types) - Added epMin/epMax for episode range filtering - Added excludeWatchlist parameter for logged-in users - Added season parameter (spring/summer/fall/winter) New Config IDs: - SOURCE_IDS: 18 source material type mappings - SEASON_IDS: 4 broadcast season mappings - EXTENDED_TYPE_IDS: Added tv-short and tv-special types Total endpoints: 34 (was 30) OpenAPI spec updated with new endpoints CHANGELOG.md updated with comprehensive change history
This commit is contained in:
@@ -16,6 +16,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
- **Body Size Limits**: Added `express.json({ limit: '10kb' })` to prevent large payload attacks
|
||||
- **Rate Limiter Cleanup**: Automatic cleanup of stale IP entries every 5 minutes
|
||||
- **Uncaught Exception Handler**: Added handler for uncaught exceptions with graceful shutdown
|
||||
- **Upcoming Anime Endpoint**: `GET /api/upcoming` — upcoming anime releases from homepage
|
||||
- **Top Anime Rankings Endpoint**: `GET /api/top-rankings?sort=top|newest` — ranked anime with sort modes
|
||||
- **Recently Updated Tabs Endpoint**: `GET /api/recently-updated?tab=all|dub|sub` — filtered updates
|
||||
- **Completed Anime Endpoint**: `GET /api/completed` — finished anime series from homepage
|
||||
- **Enhanced Filter**: Added `source`, `epMin`, `epMax`, `excludeWatchlist` parameters to `/api/filter`
|
||||
- **Source IDs Config**: New `SOURCE_IDS` mapping for 18 source material types
|
||||
- **Season IDs Config**: New `SEASON_IDS` mapping for 4 broadcast seasons
|
||||
- **Extended Type IDs**: Added `tv-short` and `tv-special` type mappings
|
||||
|
||||
### Changed
|
||||
- **Mirror Fallback**: All 22 extractors now use `fetchWithMirror()` for consistent mirror fallback
|
||||
|
||||
Reference in New Issue
Block a user