decentralised sync engine
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

feat: client lattice handshake route

serenity 47814177 fe7ed217

+6 -5
+4 -3
src/lib/types/http/handlers.ts
··· 1 + import { systemsGmstnDevelopmentChannelMembershipRecordSchema } from "@/lib/types/lexicon/systems.gmstn.development.channel.membership"; 1 2 import { z } from "zod"; 2 3 3 - export const handshakeDataSchema = z.object({ 4 + export const latticeHandshakeDataSchema = z.object({ 4 5 interServiceJwt: z.string(), 5 - channelAtUris: z.array(z.string()), 6 + memberships: z.array(systemsGmstnDevelopmentChannelMembershipRecordSchema), 6 7 }); 7 - export type HandshakeData = z.infer<typeof handshakeDataSchema>; 8 + export type LatticeHandshakeData = z.infer<typeof latticeHandshakeDataSchema>;
+2 -2
src/routes/handshake/route.ts
··· 1 - import { clientHandshakeHandler } from "@/lib/handlers/handshake"; 1 + import { latticeHandshakeHandler } from "@/lib/handlers/latticeHandshake"; 2 2 import type { Route } from "@/lib/types/routes"; 3 3 4 4 export const handshakeRoute: Route = { 5 5 method: "POST", 6 - handler: clientHandshakeHandler, 6 + handler: latticeHandshakeHandler, 7 7 };