mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 05:49:16 +01:00
fix(build): 🐛 Add bodyOrJson middleware to server/api/v1/apps
This commit is contained in:
parent
959dd27ad6
commit
516bfb72e7
3 changed files with 45 additions and 2 deletions
|
|
@ -34,7 +34,15 @@ describe("POST /api/v1/apps/", () => {
|
|||
const response = await sendTestRequest(
|
||||
new Request(new URL("/api/v1/apps", config.http.base_url), {
|
||||
method: "POST",
|
||||
body: formData,
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
body: JSON.stringify({
|
||||
client_name: "Test Application",
|
||||
website: "https://example.com",
|
||||
redirect_uris: "https://example.com",
|
||||
scopes: "read write",
|
||||
}),
|
||||
}),
|
||||
);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue