Skip to content

Commit ae7b958

Browse files
author
Picoseconds
committed
fix: fixed API stringifying data
1 parent e90a532 commit ae7b958

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/server.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ app.get('/', (req, res) => {
5757
});
5858

5959
app.get('/api/v1/playerCount', (_req, res) => {
60-
6160
let game = getGame();
6261

6362
if (!game) {
@@ -85,7 +84,7 @@ app.get('/api/v1/players', (req, res) => {
8584
);
8685
}
8786

88-
res.send(JSON.stringify({ type: "success", data: JSON.stringify(clients) }));
87+
res.send(JSON.stringify({ type: "success", clients: clients }));
8988
}
9089
});
9190

0 commit comments

Comments
 (0)