19 lines
432 B
TypeScript
19 lines
432 B
TypeScript
import { Hono } from "hono";
|
|
import type { BaseEnv } from "../types/app.types.js";
|
|
|
|
export const getAdminTablesRouter = () => {
|
|
const adminTablesRouter = new Hono<BaseEnv>();
|
|
|
|
adminTablesRouter.get("/:tableId", async (c) => {
|
|
const tableId = c.req.param("tableId");
|
|
|
|
return c.json(
|
|
{
|
|
error: `Admin table '${tableId}' is not implemented yet`,
|
|
},
|
|
501
|
|
);
|
|
});
|
|
|
|
return adminTablesRouter;
|
|
};
|