We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 90b2854 commit 359285fCopy full SHA for 359285f
src/app/swapi/page.tsx
@@ -12,8 +12,9 @@ export const metadata: Metadata = {
12
};
13
14
export default async function StarWarsAPI() {
15
- const endpoint = `/api/people/1`;
+ const endpoint = `/api/films/1`;
16
const url = new URL(`https://swapi.mimo.dev${endpoint}`);
17
+ console.log(url);
18
const method = `GET`;
19
const response = await fetch(url);
20
const data: any = response.ok ? await response.json() : null;
0 commit comments