mirror of
https://github.com/linsa-io/linsa.git
synced 2026-03-11 21:05:28 +01:00
14 lines
279 B
TypeScript
14 lines
279 B
TypeScript
import { createServerFn } from "@tanstack/start"
|
|
import { get } from "ronin"
|
|
|
|
export const getFeatureFlag = createServerFn(
|
|
"GET",
|
|
async (data: { name: string }) => {
|
|
const response = await get.featureFlag.with({
|
|
name: data.name,
|
|
})
|
|
|
|
return response
|
|
},
|
|
)
|