Skip to content

Commit b51a382

Browse files
fix: decode JSON from templates
1 parent 1a57e76 commit b51a382

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/extensions/api.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,10 @@ function () use ($args, $kirby) {
202202
}
203203
);
204204

205-
return Api::createResponse(201, $data);
205+
return Api::createResponse(
206+
201,
207+
Json::decode($data)
208+
);
206209
}
207210
)
208211
]

0 commit comments

Comments
 (0)