0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2024-12-16 20:26:19 -05:00

feat: add content schema to HTTP 201 CREATED messages (#6244)

feat: add content schema to 201 messages
This commit is contained in:
Mostafa Moradian 2024-07-22 05:06:40 +02:00 committed by GitHub
parent 0d4b82488f
commit adbf04e22a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -93,7 +93,7 @@ const buildOperation = (
throw new Error(`Invalid status code ${status}.`);
}
if (status === 200) {
if (status === 200 || status === 201) {
return [
status,
{