shop.balmet.com

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

openbay.php (533B)


      1 <?php
      2 class ControllerExtensionOpenbayOpenbay extends Controller {
      3     public function index() {
      4         $this->response->addHeader('Cache-Control: no-cache, must-revalidate');
      5         $this->response->addHeader('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
      6         $this->response->addHeader('Content-type: application/json; charset=utf-8');
      7         $this->response->addHeader('X-Openbay-Header: hello');
      8 
      9         http_response_code(200);
     10         $this->response->setOutput(json_encode(array('reply' => 'hello')));
     11     }
     12 }