Skip to content

Commit 359285f

Browse files
Update SWAPI documentation link
1 parent 90b2854 commit 359285f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/app/swapi/page.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@ export const metadata: Metadata = {
1212
};
1313

1414
export default async function StarWarsAPI() {
15-
const endpoint = `/api/people/1`;
15+
const endpoint = `/api/films/1`;
1616
const url = new URL(`https://swapi.mimo.dev${endpoint}`);
17+
console.log(url);
1718
const method = `GET`;
1819
const response = await fetch(url);
1920
const data: any = response.ok ? await response.json() : null;

0 commit comments

Comments
 (0)