feat(housekeeping): cut over administration to ase
This commit is contained in:
1 parent
c9e35cf602
commit
2b8f73a91d
457 files changed
+589
-55936
No files matched your search
@@ -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