feat(housekeeping): cut over administration to ase
This commit is contained in:
@@ -39,7 +39,7 @@ export async function uploadMedia(
|
||||
);
|
||||
if (!result.ok) throw new Error("Media upload failed");
|
||||
revalidatePath("/api/media");
|
||||
revalidatePath("/admin/media");
|
||||
revalidatePath("/ase/content/media/library");
|
||||
return { ok: true };
|
||||
}
|
||||
|
||||
@@ -51,7 +51,7 @@ export async function deleteMedia(name: string): Promise<void> {
|
||||
{ filename: name },
|
||||
);
|
||||
revalidatePath("/api/media");
|
||||
revalidatePath("/admin/media");
|
||||
revalidatePath("/ase/content/media/library");
|
||||
}
|
||||
|
||||
export async function uploadMediaAndReturn(
|
||||
@@ -67,7 +67,7 @@ export async function uploadMediaAndReturn(
|
||||
);
|
||||
if (!result.ok) return "";
|
||||
revalidatePath("/api/media");
|
||||
revalidatePath("/admin/media");
|
||||
revalidatePath("/ase/content/media/library");
|
||||
return typeof result.data.output?.url === "string"
|
||||
? result.data.output.url
|
||||
: "";
|
||||
|
||||
Reference in New Issue
Block a user