export const createRegistry = apiFactory<RegistryFormSchemaType>({
  url: ({ baseUrl, namespace }: { baseUrl?: string; namespace: string }) =>
    `${baseUrl ?? ""}/api/v2/namespaces/${namespace}/registries`,
  method: "POST",
  schema: RegistryCreatedSchema,