Commit Graph

26 Commits

Author SHA1 Message Date
StarAppeal e678bc800b feat: add location search endpoint, update weather polling to use coordinates, and enforce weather rate limiting
- Introduce /api/location/search endpoint for location autocomplete using OpenWeather geocoding
- Refactor weather polling service and user schema to use latitude/longitude instead of location name
- Add weatherLimiter middleware to rate limit location API requests
- Update tests for new location structure and endpoint
2025-12-27 18:31:12 +01:00
StarAppeal e3926a422a chore: Add endpoint to update user state and update test cases 2025-12-27 04:49:08 +01:00
StarAppeal 329911d3b5 test: Update user tests to use dynamic ObjectId and add validation for ObjectId 2025-09-30 06:55:02 +02:00
StarAppeal 9975e4f1b1 fix: Update user ID in tests and enforce admin check in user retrieval route 2025-09-30 06:51:25 +02:00
StarAppeal 5ddb7c67cf refactor: Improve type safety and error handling across multiple files, eslint fix 2025-09-30 05:16:25 +02:00
StarAppeal a3a34b3576 feat: Implement stayLoggedIn functionality for JWT authentication 2025-09-29 09:36:36 +02:00
StarAppeal 7f683fa6bc implement file duplication check in upload process and enhance test coverage 2025-09-26 04:01:19 +02:00
StarAppeal 0aafe74a74 fix test 2025-09-25 23:16:23 +02:00
StarAppeal 2e06562af9 add s3Service rest api 2025-09-25 02:36:24 +02:00
StarAppeal 46b5845140 add mule and @ts-ignore where needed 2025-09-25 02:05:21 +02:00
StarAppeal 06cffcd7af refactoring, added s3Service.ts, add more depenedncy injection, fix tests as always i geuss 2025-09-24 23:55:05 +02:00
StarAppeal 3621dcb87b fix tests 2025-09-20 22:01:11 +02:00
StarAppeal 22b5d7a4e4 major refactoring and use spotify polling service instead of update every second 2025-09-20 20:37:47 +02:00
StarAppeal 65d87b77c6 inject SpotifyTokenService in relevant classes 2025-09-19 23:19:51 +02:00
StarAppeal f866d2b5ab rename cookieJwtAuth to extractTokenFromCookie 2025-09-19 22:28:53 +02:00
StarAppeal 2fa3a3de78 small refactoring 2025-09-18 23:05:29 +02:00
StarAppeal 6aac43311a dependency injection for jwtAuthenticator 2025-09-18 22:26:38 +02:00
StarAppeal c7d4454359 refactor to inject userservice 2025-09-18 21:14:33 +02:00
StarAppeal da19a0aaf1 add isAdmin to secure specific endpoints 2025-09-15 20:54:19 +02:00
StarAppeal 6a9ffde9f6 better api 2025-09-13 12:12:38 +02:00
StarAppeal 9e63c9d33e use cookie to store the bearer token 2025-09-11 05:35:51 +02:00
StarAppeal 6bba31e575 add and change multiple vitests 2025-09-09 05:49:30 +02:00
StarAppeal 63d9c796f6 add comprehensive tests for db services and utils 2025-09-08 06:19:00 +02:00
StarAppeal 061338c91d add @vitest/coverage-v8 and update package-lock 2025-09-08 05:18:55 +02:00
StarAppeal bf8a19adb5 fix tests 2025-09-06 05:08:13 +02:00
StarAppeal 3a939c2b36 add validation middleware and improve REST API structure 2025-09-06 03:47:44 +02:00