articles.factory.js 253 B

12345678910111213
  1. (function() {
  2. 'use strict';
  3. app.factory('articles.repository', ['webApi', '$http', function(webApi, $http) {
  4. return {
  5. getArticles: _getArticles,
  6. };
  7. function _getArticles () {
  8. return $http.get(webApi.DOMAIN + '/api/v1/articles');
  9. }
  10. }]);
  11. })();