feat: implement adding movie details from tmdb

This commit is contained in:
2023-08-01 03:15:15 +02:00
parent 3a5c5b4404
commit 01697a6686
9 changed files with 124 additions and 24 deletions

View File

@ -24,6 +24,8 @@ export const handler = async (
const headers = new Headers();
headers.append("Content-Type", "application/json");
console.log("[api] getting movie credits");
const cacheId = `/movie/credits/${id}`;
const cachedResponse = await cache.get<CachedMovieCredits>(cacheId);