public function index()
    {
        // $options = $this->getParams('offset', 'limit', 'includes', 'order_by');

        $categories = Subbly::api('subbly.category')->all();

        return $this->jsonResponse(array(
            'categories' => $this->presenter->collection($categories),
        ));
        // return $this->jsonCollectionResponse(array(
        //     'categories' => $this->presenter->collection($categories)
        // ));
    }
public function index()
    {
        // $options = $this->getParams('offset', 'limit', 'includes', 'order_by');

        $categories = Subbly::api('subbly.category')->all();

        return $this->jsonResponse(array(
            'categories' => $this->presenter->collection($categories),
        ));
        // return $this->jsonCollectionResponse(array(
        //     'categories' => $this->presenter->collection($categories)
        // ));
    }
public function index ( ) { // $options = $this->getParams('offset', 'limit', 'includes', 'order_by'); $ categories = Subbly :: api ( 'subbly.category' ) -> all ( ) ; return $ this -> jsonResponse ( array ( 'categories' => $ this -> presenter -> collection ( $ categories ) , ) ) ; // return $this->jsonCollectionResponse(array( //     'categories' => $this->presenter->collection($categories) // )); }
Get Categories list.

@route GET /api/v1/categories
@authentication required
Get Categories list .