EventBuzz_Console/src/services/api/visitorTheme.ts

13 lines
374 B
TypeScript

import { api } from './client';
import type { VisitorThemeConfig } from './types';
export const visitorThemeApi = {
get(eventId: string) {
return api.get<VisitorThemeConfig>(`/events/${eventId}/visitor-theme`);
},
update(eventId: string, payload: VisitorThemeConfig) {
return api.put<VisitorThemeConfig>(`/events/${eventId}/visitor-theme`, payload);
},
};