import { createRequire } from 'node:module'; const require = createRequire(import.meta.url);
import "./chunk-NJX2BODH.js";

// ../../dev/server/src/utility.ts
import { Hono } from "hono/tiny";
import { StatusCodes } from "http-status-codes";
var utilityRoute = new Hono();
utilityRoute.post("/database/dump", async (ctx) => {
  const db = ctx.get("db");
  const databaseDumpPath = ctx.get("databaseDumpPath");
  await db.dump(databaseDumpPath);
  return ctx.json({ dumpPath: databaseDumpPath }, StatusCodes.CREATED);
});
var _healthRoute = utilityRoute.get("/health", (ctx) => {
  return ctx.json({ name: ctx.get("name") });
});
export {
  utilityRoute
};
