export const federation = new Federation<void>(); federation .setActorDispatcher("/users/{handle}", async (ctx, handle, key) => { // ... omitted for brevity }) .setKeyPairDispatcher(async (ctxData, handle) => { // ... omitted for brevity }); federation .setOutboxDispatcher( "/users/{handle}/outbox", async (ctx, handle, cursor) => { // ... omitted for brevity }, ) .setCounter(async (ctx, handle) => omitted) .setFirstCursor(async (ctx, handle) => omitted); federation .setInboxListeners("/users/{handle}/inbox", "/inbox") .on(Follow, async (ctx, follow) => omitted) .on(Undo, async (ctx, undo) => omitted); federation .setFollowingDispatcher( "/users/{handle}/following", async (ctx, handle, cursor) => { // ... omitted for brevity }, ) .setCounter(async (ctx, handle) => omitted) .setFirstCursor(async (ctx, handle) => omitted); federation .setFollowersDispatcher( "/users/{handle}/followers", async (ctx, handle, cursor) => { // ... omitted for brevity }, ) .setCounter(async (ctx, handle) => omitted) .setFirstCursor(async (ctx, handle) => omitted);
https://todon.eu/system/media_attachments/files/112/019/500/441/903/617/original/b6d7b6e78674f42f.png