summaryrefslogtreecommitdiff
path: root/engine/AjaxOkResponse.php
blob: 253a56321bb075330346c780c5c9199abb6c803b (plain)
1
2
3
4
5
6
7
8
9
<?php

class AjaxOkResponse extends AjaxResponse {

    public function __construct($data) {
        parent::__construct(code: 200, body: json_encode(['response' => $data], JSON_UNESCAPED_UNICODE));
    }

}