feat(notify): intial nofity system added to monitor crashes and rfid wrapper

This commit is contained in:
2025-03-26 22:08:53 -05:00
parent 7a1a4773e7
commit eb051d51f2
9 changed files with 649 additions and 72 deletions

View File

@@ -0,0 +1,19 @@
import { OpenAPIHono } from "@hono/zod-openapi";
import sendemail from "./routes/sendMail.js";
const app = new OpenAPIHono();
const routes = [sendemail] as const;
const appRoutes = routes.forEach((route) => {
app.route("/notify", route);
});
app.all("/notify/*", (c) => {
return c.json({
success: false,
message: "you have encounted a notication route that dose not exist.",
});
});
export default app;