dify/web/app/(commonLayout)/plugins/test/card/actions.ts
2024-10-12 12:36:29 +08:00

15 lines
330 B
TypeScript

'use server'
import { revalidatePath } from 'next/cache'
// Server Actions
export async function handleDelete() {
// revalidatePath only invalidates the cache when the included path is next visited.
revalidatePath('/')
}
export async function fetchPluginDetail(id: string) {
// Fetch plugin detail TODO
return { id }
}