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 serverState = ctx.get("serverState");
  await db.dump(serverState.databaseDumpPath);
  return ctx.json({ dumpPath: serverState.databaseDumpPath }, StatusCodes.CREATED);
});
var _healthRoute = utilityRoute.get("/health", (ctx) => {
  return ctx.json({
    name: ctx.get("serverState").name
  });
});
export {
  utilityRoute
};
