2024-10-10 17:47:04 +08:00
|
|
|
'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('/')
|
|
|
|
}
|
2024-10-12 12:35:56 +08:00
|
|
|
|
2024-10-12 16:29:46 +08:00
|
|
|
export async function fetchPluginDetail(org: string, name: string) {
|
2024-10-12 12:35:56 +08:00
|
|
|
// Fetch plugin detail TODO
|
2024-10-12 16:29:46 +08:00
|
|
|
return { org, name }
|
2024-10-12 12:35:56 +08:00
|
|
|
}
|