mirror of
https://github.com/YuzuZensai/Minikura.git
synced 2026-09-13 10:49:21 +00:00
✨ feat: add plugin registry and server operations
This commit is contained in:
@@ -95,6 +95,13 @@ export default function EditServerPage() {
|
||||
throw new Error(errorMsg);
|
||||
}
|
||||
|
||||
if (resourceKind === "server") {
|
||||
const pluginResponse = await api.api.registry
|
||||
.servers({ serverId })
|
||||
.plugins.put({ artifactIds: data.registryArtifactIds });
|
||||
if (pluginResponse.error) throw new Error("Server updated, but plugin deployment failed");
|
||||
}
|
||||
|
||||
router.push("/dashboard/servers");
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user