mirror of
https://github.com/nicotsx/zerobyte.git
synced 2026-04-18 05:47:31 -04:00
10 lines
293 B
TypeScript
10 lines
293 B
TypeScript
import type { Context, Next } from "hono";
|
|
import { systemService } from "../system/system.service";
|
|
|
|
export const requireDevPanel = async (c: Context, next: Next) => {
|
|
if (!systemService.isDevPanelEnabled()) {
|
|
return c.json({ message: "Dev panel not enabled" }, 403);
|
|
}
|
|
await next();
|
|
};
|