Skip to content

Commit 2578dd6

Browse files
Using https instead, oops
1 parent 3ea7178 commit 2578dd6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

app/(with-layout)/surfers/leaderboard/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export default function Page() {
1919
// Function to fetch leaderboard entries
2020
const fetchLeaderboard = async () => {
2121
try {
22-
const response = await fetch("http://hackrpi.com/api/scores");
22+
const response = await fetch("https://hackrpi.com/api/scores");
2323
if (response.ok) {
2424
const data: Result[] = await response.json(); // Ensure the data is typed as Result[]
2525
setLeaderboardEntries(data); // Update state with the fetched leaderboard data

app/(with-layout)/surfers/page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1012,7 +1012,7 @@ const ThreeJSPage = () => {
10121012
//Sending score
10131013
//const tempData = { 'name': endName.current?.value, 'score': Math.floor(randomCrap.score) };
10141014

1015-
fetch('http://hackpi.com/api/scores', {
1015+
fetch('https://hackpi.com/api/scores', {
10161016
method: 'POST',
10171017
headers: {
10181018
'Content-Type': 'application/json',
@@ -1122,7 +1122,7 @@ const ThreeJSPage = () => {
11221122
score: number,
11231123
}
11241124
//Getting results:
1125-
fetch('http://hackpi.com/api/scores')
1125+
fetch('https://hackpi.com/api/scores')
11261126
.then(response => response.json())
11271127
.then(data => {
11281128
console.log('Scores:', data)

0 commit comments

Comments
 (0)