mirror of
https://github.com/Dokploy/dokploy.git
synced 2026-06-28 02:25:23 +02:00
refactor(application): update application handling to support multiple app names and improve data structure
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
import {
|
||||
findServerById,
|
||||
getApplicationInfo,
|
||||
getNodeApplications,
|
||||
getNodeInfo,
|
||||
getSwarmNodes,
|
||||
} from "@dokploy/server";
|
||||
import { findServerById } from "@dokploy/server";
|
||||
import { TRPCError } from "@trpc/server";
|
||||
import { z } from "zod";
|
||||
import { createTRPCRouter, protectedProcedure } from "../trpc";
|
||||
@@ -55,7 +55,12 @@ export const swarmRouter = createTRPCRouter({
|
||||
getAppInfos: protectedProcedure
|
||||
.input(
|
||||
z.object({
|
||||
appName: z.string().min(1).regex(containerIdRegex, "Invalid app name."),
|
||||
appName: z
|
||||
.string()
|
||||
.min(1)
|
||||
.regex(containerIdRegex, "Invalid app name.")
|
||||
.array()
|
||||
.min(1),
|
||||
serverId: z.string().optional(),
|
||||
}),
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user