feat(lst): intial scafolding for the new system

This commit is contained in:
2025-02-16 19:07:03 -06:00
parent 5c5bce024c
commit 2e0253636e
34 changed files with 679 additions and 29 deletions

27
apps/ocme/src/app.ts Normal file
View File

@@ -0,0 +1,27 @@
import { funnyFunction } from "@shared/lib";
import { Hono } from "hono";
import { serveStatic } from "hono/bun";
import { logger } from "hono/logger";
//import { expensesRoute } from "./routes/expenses";
const app = new Hono();
app.use("*", logger());
// running the hi function
funnyFunction();
app.get("/", (c) => {
return c.json({ success: true, message: "hello from bun on the ocmeserver" });
});
app.get("/api", (c) => {
return c.json({ success: true, message: "first api for ocme" });
});
//const apiRoute = app.basePath("/api").route("/expenses", expensesRoute);
app.get("*", serveStatic({ root: "./frontend/dist" }));
app.get("*", serveStatic({ path: "./frontend/dist/index.html" }));
export default app;
//export type ApiRoute = typeof apiRoute;