Spaces:
Running
Running
Download frontend/lib/api/landing.ts from axeronis/microfunnel-api: direct link, hf CLI and curl.
- Browser
- Download file 633 Bytes
-
https://huggingface.co/spaces/axeronis/microfunnel-api/resolve/main/frontend/lib/api/landing.ts
- Command line
-
hf download hf://spaces/axeronis/microfunnel-api/frontend/lib/api/landing.ts
-
curl -L -o landing.ts https://huggingface.co/spaces/axeronis/microfunnel-api/resolve/main/frontend/lib/api/landing.ts
633 Bytes
| import { api } from '@/lib/api' | |
| export interface LandingConfig { | |
| id?: string | |
| trust_logos: string[] | |
| hero_title?: string | |
| hero_subtitle?: string | |
| show_chat_demo: boolean | |
| show_pricing: boolean | |
| updated_at?: string | |
| } | |
| export const landingApi = { | |
| // Public | |
| getConfig: async (): Promise<LandingConfig> => { | |
| const { data } = await api.get('/api/v1/landing/config') | |
| return data | |
| }, | |
| // Admin only | |
| updateConfig: async (config: Partial<LandingConfig>): Promise<LandingConfig> => { | |
| const { data } = await api.put('/api/v1/landing/config', config) | |
| return data | |
| } | |
| } | |