Skip to content

Commit

Permalink
move frontend to custom api
Browse files Browse the repository at this point in the history
  • Loading branch information
dickeyy committed Jan 6, 2025
1 parent 27dea49 commit 83aab4d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions apps/web/app/movie/[id]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,9 @@ import Link from "next/link";

export default async function MoviePage({ params }: { params: Promise<{ id: string }> }) {
const id = (await params).id;
const data = await fetch(`https://api.themoviedb.org/3/movie/${id}`, {
const data = await fetch(`https://api.movies.kyle.so/movie/${id}`, {
headers: {
"Content-Type": "application/json",
Authorization: `Bearer ${process.env.TMDB_TOKEN}`
"Content-Type": "application/json"
}
}).then((res) => res.json());

Expand Down Expand Up @@ -148,6 +147,7 @@ export default async function MoviePage({ params }: { params: Promise<{ id: stri
}

function MovieRating() {
// TODO: implement
return (
<div className="border w-fit px-1 rounded border-white/40 h-fit text-white/70 text-sm">
<p>R</p>
Expand Down

0 comments on commit 83aab4d

Please sign in to comment.