509 Commits

Author SHA1 Message Date
d8566355bb Add nextup routes 2025-04-08 23:39:50 +02:00
c8742605ff Read `preferOriginal from jwt settings 2025-04-08 09:34:52 +02:00
4cf67c3247 Sql cleanups 2025-04-08 00:22:23 +02:00
69006478cb Update watchlist when inserting into history 2025-04-07 22:53:07 +02:00
c0e00c0fd4 Handle duplicated entries in the history 2025-04-07 21:40:41 +02:00
e32fc229f8 Fix history population (drizzle patch) 2025-04-07 21:24:04 +02:00
c48815a71a Add history tests 2025-04-07 19:34:10 +02:00
e2fa3af1e8 Add route to batch populate the history 2025-04-07 19:07:05 +02:00
fef9e844a1 Add /profile/:id/history api 2025-04-07 18:27:13 +02:00
4ba7750012 Create history api 2025-04-07 18:27:13 +02:00
df7d109c34 Cleanup default watchlist sort 2025-04-07 18:27:13 +02:00
880a85ff8d Move watchlist controller to profile dir 2025-04-07 18:27:13 +02:00
080da9bc27 Fix tests & misc errors 2025-04-07 15:40:32 +02:00
db0b244286 Handle profiles creation in kyoo db schema 2025-04-07 12:41:41 +02:00
59533e5f0c Handle 404 for user accounts 2025-04-07 12:40:11 +02:00
b3edf31afc Create simple watchlist tests 2025-04-07 12:40:11 +02:00
bf361a79d1 Better movie/serie watchlist types 2025-04-07 12:40:11 +02:00
83d8462003 Add watchstatus create/edit apis 2025-04-07 12:40:11 +02:00
4b0100c52d Create watchlist read api 2025-04-07 12:40:11 +02:00
a7f355531d Add function to fetch user info from api 2025-04-07 12:40:11 +02:00
aa9476680c Allow filter & sort by watchStatus 2025-04-07 12:40:11 +02:00
5994b8bc02 Fix aliases issues in jsonBuildObject 2025-04-06 22:02:24 +02:00
5a6e29e57a Fix guess's sub/sid format 2025-04-06 19:52:54 +02:00
74ee45244b Support nextEntry in /series/{id} 2025-04-06 19:32:48 +02:00
c3abd7c61b Handle watch status on entries 2025-04-06 18:25:41 +02:00
11e1c59698 Handle watchstatus on movies/series 2025-04-06 18:25:28 +02:00
22754442ad Create migration for watchlist/history/profiles 2025-04-06 18:24:49 +02:00
54131b6762 wip: nextEntry 2025-04-06 14:54:50 +02:00
1943eca52b Use the same subquery (videos/progress) for entries & firstEntry 2025-04-06 14:54:50 +02:00
be35a4f0d9 Add percent in movie's watchlist 2025-04-06 14:54:50 +02:00
32cc6e7910 Add watch status type in movies/series 2025-04-06 14:54:50 +02:00
e489d0c445 Add watchlist table 2025-04-06 14:54:50 +02:00
31a749b5ed Add progress in /series/:id?width=firstEntry 2025-04-06 14:54:50 +02:00
be2e5e5ccf Fix drizzle patch for lateral join 2025-04-06 14:54:50 +02:00
6ecaec2dee Add progress status in every entry 2025-04-06 14:54:50 +02:00
781a6a8196 Add history table 2025-04-06 14:54:49 +02:00
026ad817bc Format stuff 2025-04-06 14:24:43 +02:00
dcbe817d60 Use additionalProperties (elysiajs/elysia#1159) 2025-04-06 14:24:03 +02:00
0aab4cd84c Forge jwt for tests 2025-04-06 14:24:03 +02:00
49f700ca6e Check for permissions on each routes 2025-04-06 14:24:03 +02:00
411f6dcfba Use pages for users paginations 2025-04-04 22:44:44 +02:00
65a7f62fd1 Validate issuer & allow unlogged routes 2025-04-04 22:44:44 +02:00
d0d12cc5f6 Add common swagger that combine auth & api 2025-04-04 22:44:44 +02:00
0e81c11f75 Use echo-jwt 4.2 to prevent breaking change 2025-03-25 10:53:27 +01:00
1f8652e06c Validate jwt claims 2025-03-25 10:27:03 +01:00
bcded031e2 Use jwks in elysia 2025-03-25 10:27:03 +01:00
6391a99bb9 Switch to jwks instead of custom /info 2025-03-25 10:27:03 +01:00
068b19c936 Create auth middleware in elysia 2025-03-25 10:27:03 +01:00
50549f20de Rename base file 2025-03-25 10:27:03 +01:00
e6e2f8ce91 Add /health route in the api 2025-03-25 10:27:03 +01:00