Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

473 B
Raw Blame
import type { SharedArtifactData } from '@lobechat/types';
import { TRPCError } from '@trpc/server';
import { z } from 'zod';

import { publicProcedure, router } from '@/libs/trpc/lambda';

export const artifactShareRouter = router({
  getShared: publicProcedure
    .input(z.object({ id: z.string().min(1) }))
    .query(async (): Promise<SharedArtifactData> => {
      throw new TRPCError({ code: 'NOT_FOUND', message: 'Artifact sharing is not available' });
    }),
});