* feat: add read-only plugins page * fix: align plugins page i18n and header
11 lines
282 B
TypeScript
11 lines
282 B
TypeScript
import { listHermesPlugins } from '../../services/hermes/plugins'
|
|
|
|
export async function list(ctx: any) {
|
|
try {
|
|
ctx.body = await listHermesPlugins()
|
|
} catch (err: any) {
|
|
ctx.status = 500
|
|
ctx.body = { error: err.message || 'Failed to discover Hermes plugins' }
|
|
}
|
|
}
|