UNPKG

@follow-app/client-sdk

Version:

TypeScript client SDK for Follow RSS Server API

21 lines (17 loc) 578 B
import { defineModule, defineRoute } from "../../shared/define-module" import type { GoogleAnalyticsRequest, GoogleAnalyticsResponse } from "./types" /** * Data module for Google Analytics data collection */ export const dataModule = defineModule({ name: "data", prefix: "/data", routes: { // Send Google Analytics data sendAnalytics: defineRoute<GoogleAnalyticsRequest, GoogleAnalyticsResponse>("POST", "/g"), }, }) // Export the API type export type DataAPI = typeof dataModule.api // Re-export types for external consumption export type * from "./types"