File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
app/(with-layout)/surfers Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments