import { Elysia } from "elysia";
import { html } from "@elysiajs/html";
import { adminRoutes } from "./routes/admin";
import { publicRoutes } from "./routes/public";

const app = new Elysia()
  .use(html())
  .use(adminRoutes)
  .use(publicRoutes)
  .listen(3000);

console.log(
  `Elysia is running at http://${app.server?.hostname}:${app.server?.port}`
);