import { useContentSource } from '../../lib/content-source'

export default defineEventHandler(async () => {
  const source = useContentSource()
  const projects = await source.listProjects()
  return { projects }
})
