mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 05:49:16 +01:00
Fix relationships endpoint
This commit is contained in:
parent
50ab0155a5
commit
41e70d00e8
2 changed files with 17 additions and 8 deletions
|
|
@ -486,16 +486,12 @@ describe("POST /api/v1/accounts/:id/note", () => {
|
|||
describe("GET /api/v1/accounts/relationships", () => {
|
||||
test("should return an array of APIRelationship objects for the authenticated user's relationships", async () => {
|
||||
const response = await fetch(
|
||||
`${config.http.base_url}/api/v1/accounts/relationships`,
|
||||
`${config.http.base_url}/api/v1/accounts/relationships?id[]=${user2.id}`,
|
||||
{
|
||||
method: "POST",
|
||||
method: "GET",
|
||||
headers: {
|
||||
Authorization: `Bearer ${token.access_token}`,
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
body: JSON.stringify({
|
||||
"id[]": [user2.id],
|
||||
}),
|
||||
}
|
||||
);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue