remove unused stuff

This commit is contained in:
Matteo Rosati
2026-01-26 14:50:02 +01:00
parent c9db7c89d8
commit 2d90ce676b
3 changed files with 1 additions and 21 deletions

View File

@@ -1,6 +1,5 @@
import { Hono } from "hono";
import { cors } from "hono/cors";
// import { upgradeWebSocket, websocket } from "hono/bun";
import { RegisterController } from "@/controllers/register";
import { LoginController } from "@/controllers/login";
@@ -28,26 +27,7 @@ app.post("/api/v1/register", RegisterController);
app.post("/api/v1/login", LoginController);
// app.get(
// "/ws",
// upgradeWebSocket((c) => {
// return {
// onOpen(e, ws) {
// console.log("Server: Connection opened");
// ws.send("Hello!");
// },
// onClose: () => {
// console.log("Server: Connection closed");
// },
// onMessage: (ev) => {
// console.log(ev.data);
// },
// };
// }),
// );
export default {
port: Bun.env.SERVER_PORT,
fetch: app.fetch,
// websocket,
};