Skip to content

Commit

Permalink
Merge pull request #55 from tsd2024/develop
Browse files Browse the repository at this point in the history
hotfix: fix url for lobby history
  • Loading branch information
jakub-mrow authored Jun 9, 2024
2 parents 840cf08 + e6eaf72 commit ce84b2f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/app/dashboard/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,12 @@ export default function DashboardPage() {
}

const getGamesHistory = async (idToken: string) => {
const BACKEND_URL = process.env.BACKEND_URL;
const BACKEND_PROTOCOL = process.env.BACKEND_PROTOCOL;

try {
const response = await fetch(
`http://localhost:8009/api/v1/lobby_history`,
`${BACKEND_PROTOCOL}://${BACKEND_URL}/api/v1/lobby_history`,
{
method: "GET",
headers: {
Expand Down

0 comments on commit ce84b2f

Please sign in to comment.