aboutsummaryrefslogtreecommitdiff
path: root/src/config
AgeCommit message (Collapse)AuthorFilesLines
2025-01-01fix(ts build error): fixed ts build error due to conflicting typesRitesh Ghosh1-4/+5
2024-12-24feat(errorHandling): add error handlers config fileRitesh Ghosh1-0/+26
2024-12-24feat(cache): add cacheConfigSetter & cacheControlMiddleware by #90Ritesh Ghosh1-15/+0
2024-12-23chore: styling changes to be more consistentAbdelaziz Mahdy1-2/+2
2024-12-22feat(cache): add Cache-Control middleware and update .env.exampleAbdelaziz Mahdy1-0/+15
2024-12-22refactor: update `getOrSet` method definitionRitesh Ghosh1-1/+1
2024-12-07feat(cache): add `AniwatchAPICache` class to implement API caching layerRitesh Ghosh1-0/+50
2024-12-07feat(server): add aniwatch variables types for type-safe req context ↵Ritesh Ghosh1-0/+8
variable access
2024-10-06Aniwatch API Version 2 (#66)Ritesh Ghosh5-62/+19
BREAKING CHANGE: * chore: remove files that are not necessary for api v2 * test: update existing tests to use pkg * feat: organized aniwatch api envs and add more info about them * feat: update tsconfig to include strict noUnsed params * feat(api homepage): revamp api home page * feat: update wani kuni image * feat: add dot img * feat: use hono cors * feat: use hono rate limiter * build: remove unnecessary deps, add ones needed and update description * feat: add hianime routes and their handlers * feat: update vercel deployment file * docs: update logo and scraper docs, add envs section * feat: update main server file * feat: update peronal deployments caution section
2024-10-04feat: update allowed origins to include wildcard if env not presentRitesh Ghosh1-6/+5
2024-10-01Enhance CORS Configuration for Production SecurityDivyansh1-3/+18
📌 Removed the wildcard (*) origin and replaced it with trusted origins from .env. 📌 Introduced environment variable (CORS_ALLOWED_ORIGINS) for dynamic origin management. 📌 Improved security by blocking untrusted origins and methods. 📌 Enhanced performance with maxAge for caching preflight responses. 📌 No breaking changes, as the fallback origin is set to http://localhost:4000 for development, ensuring compatibility with local setups.
2024-06-11feat: update rate limit to 6 reqs every 30 minsRitesh Ghosh1-1/+1
2024-03-12feat: add json rate limit response; replace `max` with `limit`Ritesh Ghosh1-3/+9
2024-03-03feat: add axios config for future code reusabilityRitesh Ghosh1-0/+21
2024-02-28Added `.env.example`Ayush Choudhary1-2/+4
2023-11-22refactor: add strict type importsRitesh Ghosh1-1/+1
2023-11-22refactor: add strict type importsRitesh Ghosh1-1/+1
2023-09-10perf(rateLimit): increased `windowMs` timeRitesh Ghosh1-1/+1
2023-09-10feat(legacyHeaders): update `ratelimit` configRitesh Ghosh1-4/+4
2023-09-10feat: updated `ratelimit` configRitesh Ghosh1-2/+2
2023-08-20feat(cors): added cors configRitesh Ghosh1-0/+10
2023-08-13refactor(env): removed env type configRitesh Ghosh1-18/+0
2023-08-07feat: added rate limit configRitesh Ghosh1-0/+9
2023-08-07refactor: added `notFoundHandler`Ritesh Ghosh1-0/+8
2023-08-07refactor: added `errorHandler`Ritesh Ghosh1-0/+11
2023-08-07chore(envs): added type safe envsRitesh Ghosh1-0/+18