Skip to content

Admin page - #211

Open
idd20000 wants to merge 6 commits into
masterfrom
admin-page
Open

idd20000 wants to merge 6 commits into
masterfrom
admin-page

Conversation

@idd20000

@idd20000 idd20000 commented Dec 3, 2026

Copy link
Copy Markdown

No description provided.

@idd20000 idd20000 self-assigned this Dec 3, 2026
Comment thread apps/polyblitz/backend/src/main.ts Outdated
});
}

startServer();

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider not starting the server an additional time

async function postBets(betId: number, option: string) {
try {
const response = await axios.post(
`http://localhost:4590/api/bets/${betId}/wagers`,

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use the BackendURL in the App.tsx, also it's the wrong url, it's supposed to be https://localhost:4590/admin/bets/:id/resolve


async function getBets() {
try {
const response = await axios.get<Bet[]>("http://localhost:4590/Bet/bets");

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also here use the backendurl

Comment on lines +17 to +18
userID: 2,
amountWagered: 10,

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need for this, and no need for it to be in a json, please change this

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants