fix(build): 🐛 Add bodyOrJson middleware to server/api/v1/apps

This commit is contained in:
Jesse Wierzbinski 2024-05-06 08:31:12 +00:00
parent 959dd27ad6
commit 516bfb72e7
No known key found for this signature in database
3 changed files with 45 additions and 2 deletions

View file

@ -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",
}),
}),
);