mirror of
https://github.com/bknd-io/bknd/
synced 2026-08-02 16:16:02 +00:00
strengthened schema ensuring for system entities
This commit is contained in:
@@ -44,6 +44,11 @@ export class SystemController extends Controller {
|
||||
|
||||
hono.use(permission(SystemPermissions.configRead));
|
||||
|
||||
hono.get("/raw", permission([SystemPermissions.configReadSecrets]), async (c) => {
|
||||
// @ts-expect-error "fetch" is private
|
||||
return c.json(await this.app.modules.fetch());
|
||||
});
|
||||
|
||||
hono.get(
|
||||
"/:module?",
|
||||
tb("param", Type.Object({ module: Type.Optional(StringEnum(MODULE_NAMES)) })),
|
||||
|
||||
Reference in New Issue
Block a user