mirror of
https://github.com/linsa-io/linsa.git
synced 2026-01-12 12:20:23 +01:00
13 lines
315 B
TypeScript
13 lines
315 B
TypeScript
import { createServerFn } from "@tanstack/start"
|
|
import { get } from "ronin"
|
|
|
|
export const getFeatureFlag = createServerFn({ method: "GET" })
|
|
.validator((input: string) => input)
|
|
.handler(async ({ data }) => {
|
|
const response = await get.featureFlag.with({
|
|
name: data,
|
|
})
|
|
|
|
return response
|
|
})
|