Skip to content

Commit 97e84d4

Browse files
committed
Migrated endpoint to v2
1 parent 3665399 commit 97e84d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

code.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Function to fetch data from the API and output JSON
22
async function fetchData() {
3-
const apiUrl = 'https://api.green-coding.io/v1/runs?uri=https%3A%2F%2Fgithub.com%2Fgreen-coding-solutions%2Fwebsite-tester&limit=5';
3+
const apiUrl = 'https://api.green-coding.io/v2/runs?uri=https%3A%2F%2Fgithub.com%2Fgreen-coding-solutions%2Fwebsite-tester&limit=5';
44

55
try {
66
const response = await fetch(apiUrl);

0 commit comments

Comments
 (0)