fixup dev socket

This commit is contained in:
Daniel Bulant 2026-05-04 13:41:27 +02:00
parent 9ef6b48de0
commit ba5274e726
No known key found for this signature in database
2 changed files with 4 additions and 2 deletions

View file

@ -10,6 +10,7 @@ import { partyApp } from "./routes/party";
import { partySocketApp, pubsub } from "./routes/party-socket"; import { partySocketApp, pubsub } from "./routes/party-socket";
import { quizRoutes } from "./routes/quiz.ts"; import { quizRoutes } from "./routes/quiz.ts";
import { statsApp } from "./routes/stats.ts"; import { statsApp } from "./routes/stats.ts";
import { deviceSocketApp } from "./routes/device-socket.ts";
const app = new Elysia() const app = new Elysia()
.use(betterAuthElysia) .use(betterAuthElysia)
@ -21,6 +22,7 @@ const app = new Elysia()
.use(partyAnalysisApp) .use(partyAnalysisApp)
.use(partySocketApp) .use(partySocketApp)
.use(quizRoutes) .use(quizRoutes)
.use(deviceSocketApp)
.get("/", () => ({ ok: true })), .get("/", () => ({ ok: true })),
) )
.listen(4000); .listen(4000);

View file

@ -8,7 +8,7 @@ import {
userTopic, userTopic,
} from "./party-socket"; } from "./party-socket";
export const partySocketApp = new Elysia().group("/dev-socket", (app) => export const deviceSocketApp = new Elysia().group("/dev-socket", (app) =>
app app
.get("/test", () => ({ ok: 1 })) .get("/test", () => ({ ok: 1 }))
.ws("/ws", { .ws("/ws", {