Skip to content

Beautiful Open-Source Form Builder

558 B
Raw Blame
import { apiService } from './base'

export const contentApi = {
  // Fonts
  fonts: {
    list: (options) => apiService.get('/fonts', options)
  },

  // Feature flags
  featureFlags: {
    list: (options) => apiService.get('/content/feature-flags', options)
  },

  plans: {
    list: (options) => apiService.get('/content/plans', options)
  },

  // Unsplash
  unsplash: {
    list: (options) => apiService.get('/unsplash', options),
    download: (downloadLocation) => apiService.post('/unsplash/download', { download_location: downloadLocation })
  }
}