20 Commits

Author SHA1 Message Date
zyachel
e320557add fix(error): add sanity checks before error destructuring
also preserve original stack trace(and print it) in dev mode
2024-08-24 16:06:47 +05:30
zyachel
324c138ec4 fix(cache): make cache keys for review more distinctive 2024-03-31 17:21:35 +05:30
zyachel
1041de5439 fix(api): fix reviews api
was returning title info
2024-03-31 16:39:26 +05:30
zyachel
dc42b3204c feat(reviews): add reviews route
allows seeing all reviews with optional filters.
works sans JS as well

closes https://github.com/zyachel/libremdb/issues/25
closes https://codeberg.org/zyachel/libremdb/issues/19
2024-03-31 15:38:07 +05:30
zyachel
9fdd731136 feat(api): add a catch-all route 2023-10-30 01:25:32 +05:30
zyachel
4dffbbc0ec fix(api): refactor all endpoints a bit
disallow methods other that GET
properly type return types
add type guards where needed
make all endpoints
return same response format for consistency
2023-10-30 01:24:32 +05:30
Niklas Poslovski
264442448f Add API endpoints for all routes that contain IMDB data 2023-10-29 19:00:44 +01:00
zyachel
c610ef4d1b fix(media proxy): fix 304 response code with body error
was accidently sending a 304 with body. introduced in c53c88d
2023-06-03 22:20:56 +05:30
zyachel
c53c88db9b feat(cache): implement caching of routes 2023-05-21 18:15:03 +05:30
zyachel
505ff4d839 refactor: replace relative paths with absolute ones in import statements 2023-01-28 22:09:27 +05:30
zyachel
a32785ce00 fix: fix unseekable videos on webkit-based browsers
this commit fixes videos not being able to fast-forward/rewind for lack of http headers and 206
status code

fix https://github.com/zyachel/libremdb/issues/26
2023-01-14 16:36:20 +05:30
zyachel
5fd0d92187 fix(redis): fix logs being polluted when redis is disabled
also used streaming when redis is disabled for faster response.
2022-11-13 17:29:47 +05:30
httpjamesm
7a717aa212 feat: make redis cache optional 2022-11-12 10:57:56 -05:00
httpjamesm
a410bc4264 refactor: use zyachel's code 2022-11-12 10:56:51 -05:00
httpjamesm
720f2b6acb feat: IP ratelimit for media proxy 2022-10-31 18:05:19 -04:00
httpjamesm
9bce8a2dd5 fix: bypass response limit for media proxy endpoint 2022-10-31 17:46:17 -04:00
httpjamesm
1983f6b1fb feat: proxy videos and add more descriptive error messages 2022-10-31 17:45:14 -04:00
httpjamesm
dba2ba5aa4 feat: fetch images from media proxy on frontend 2022-10-31 17:37:36 -04:00
httpjamesm
2c8d138cbd feat: cache media proxy data in redis for 30 mins 2022-10-31 17:28:18 -04:00
httpjamesm
59a314b2bd feat: media proxy for anonymous loads 2022-10-31 17:04:26 -04:00