// Get available contribution options
import { getContributionOptions } from '../../config/contributions.js'

export default defineEventHandler(async (event) => {
  try {
    const options = getContributionOptions()

    return {
      success: true,
      options
    }
  } catch (error) {
    console.error('Error fetching contribution options:', error)
    throw createError({
      statusCode: 500,
      statusMessage: 'Failed to fetch contribution options'
    })
  }
})
