mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-07-09 01:41:48 +08:00
15 lines
352 B
TypeScript
15 lines
352 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(org: string, name: string) {
|
|
// Fetch plugin detail TODO
|
|
return { org, name }
|
|
}
|