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:
parent
0d4b82488f
commit
adbf04e22a
1 changed files with 1 additions and 1 deletions
|
@ -93,7 +93,7 @@ const buildOperation = (
|
|||
throw new Error(`Invalid status code ${status}.`);
|
||||
}
|
||||
|
||||
if (status === 200) {
|
||||
if (status === 200 || status === 201) {
|
||||
return [
|
||||
status,
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue