export const federation = new Federation<void>(); federation .actor("/users/{handle}", async (ctx, handle, key) => { // ... omitted for brevity }) .keyPair(async (ctxData, handle) => { // ... omitted for brevity }); federation .outbox("/users/{handle}/outbox", async (ctx, handle, cursor) =>{ // ... omitted for brevity }) .counter(async (ctx, handle) => omitted) .firstCursor(async (ctx, handle) => omitted); federation .inbox("/users/{handle}/inbox", "/inbox") .on(Follow, async (ctx, follow) => omitted) .on(Undo, async (ctx, undo) => omitted); federation .following( "/users/{handle}/following", async (ctx, handle, cursor) => { // ... omitted for brevity } ) .counter(async (ctx, handle) => omitted) .firstCursor(async (ctx, handle) => omitted); federation .followers( "/users/{handle}/followers", async (ctx, handle, cursor) => { // ... omitted for brevity } ) .counter(async (ctx, handle) => omitted) .firstCursor(async (ctx, handle) => omitted);
https://todon.eu/system/media_attachments/files/112/019/500/393/669/692/original/0647fa93a274e197.png