refactor: rewrite create-app-auth-client mutation as REST endpoint

This commit is contained in:
Ali BARIN
2024-08-27 16:34:09 +02:00
parent 164d31dfbc
commit 81c39d7d93
14 changed files with 168 additions and 63 deletions
+3 -1
View File
@@ -41,7 +41,9 @@ const renderObject = (response, object, options) => {
},
};
return response.json(computedPayload);
const status = options?.status || 200;
return response.status(status).json(computedPayload);
};
const renderError = (response, errors, status, type) => {