aboutsummaryrefslogtreecommitdiffstats
path: root/public/catalog/controller/extension/openbay/openbay.php
blob: 3a5f33513318097422ea48a8b579040196b3d8f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
<?php
class ControllerExtensionOpenbayOpenbay extends Controller {
    public function index() {
        $this->response->addHeader('Cache-Control: no-cache, must-revalidate');
        $this->response->addHeader('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
        $this->response->addHeader('Content-type: application/json; charset=utf-8');
        $this->response->addHeader('X-Openbay-Header: hello');

        http_response_code(200);
        $this->response->setOutput(json_encode(array('reply' => 'hello')));
    }
}