mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 13:59:16 +01:00
fix(federation): 🚑 Fix broken inbound federation and add end-to-end testing for federation
This commit is contained in:
parent
85ef96fc7f
commit
8ae4f3815a
9 changed files with 192 additions and 29 deletions
|
|
@ -4,7 +4,6 @@ import { z } from "zod";
|
|||
import { apiRoute, handleZodError } from "@/api";
|
||||
import { ApiError } from "~/classes/errors/api-error";
|
||||
import { InboxJobType, inboxQueue } from "~/classes/queues/inbox";
|
||||
import type { JSONObject } from "~/packages/sdk/types";
|
||||
|
||||
export default apiRoute((app) =>
|
||||
app.post(
|
||||
|
|
@ -87,9 +86,8 @@ export default apiRoute((app) =>
|
|||
}),
|
||||
handleZodError,
|
||||
),
|
||||
validator("json", z.any(), handleZodError),
|
||||
async (context) => {
|
||||
const body: JSONObject = await context.req.valid("json");
|
||||
const body = await context.req.json();
|
||||
const {
|
||||
"versia-signature": signature,
|
||||
"versia-signed-at": signedAt,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue