remove unused stuff
This commit is contained in:
20
server.ts
20
server.ts
@@ -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,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user