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