16 lines
361 B
TypeScript
16 lines
361 B
TypeScript
import { serve } from "bun";
|
|
import { config } from "./config";
|
|
import { init } from "./init";
|
|
import { createRouter } from "./routes";
|
|
import { websocketHandlers } from "./websocket";
|
|
|
|
await init();
|
|
|
|
serve({
|
|
port: config.port,
|
|
fetch: createRouter(),
|
|
websocket: websocketHandlers,
|
|
});
|
|
|
|
console.log(`MusicRoom running on http://localhost:${config.port}`);
|