Skip to content

Open source file-system and knowledge based agent template. Build AI agents that stay up to date with your knowledge base

345 B
Raw Blame
import { getSnapshotRepoConfig } from '../../utils/sandbox/snapshot-config'
import { requireAdmin } from '../../utils/admin'

/**
 * GET /api/snapshot/config
 * Returns the configured snapshot repository (admin only).
 */
export default defineEventHandler(async (event) => {
  await requireAdmin(event)
  return await getSnapshotRepoConfig()
})