Sha256: 548aa64cc6d1c8746489720e4d8decba5c69efd64c87d0af41753b9e1fd54e78

Contents?: true

Size: 1.22 KB

Versions: 6

Compression:

Stored size: 1.22 KB

Contents

/* -----------------------------------------------------------------------------
    Red Base - Basic website skel engine
    Copyright (C) 2012-2013 Yellowen

    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation; either version 2 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License along
    with this program; if not, write to the Free Software Foundation, Inc.,
    51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
----------------------------------------------------------------------------- */

var API = angular.module("API", []);

API.provider("API", function(){

    var _resource;
    this.resource = function(resource){
        _resource = resource;
    };

    this.$get = ["Restangular", function(Restangular){
        return new Restangular.all(_resource);
    }];
});

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
faalis-0.11.1 app/assets/javascripts/faalis/dashboard/modules/api.js
faalis-0.11.0 app/assets/javascripts/faalis/dashboard/modules/api.js
faalis-0.7.0 app/assets/javascripts/faalis/dashboard/modules/api.js
red_base-0.6.0 app/assets/javascripts/red_base/dashboard/modules/api.js
red_base-0.5.1 app/assets/javascripts/red_base/dashboard/modules/api.js
red_base-0.5.0 app/assets/javascripts/red_base/dashboard/modules/api.js