PageRenderTime 54ms CodeModel.GetById 32ms RepoModel.GetById 1ms app.codeStats 0ms

/js/services.js

https://gitlab.com/profound-software/infinity-bookmarks
JavaScript | 12 lines | 11 code | 1 blank | 0 comment | 0 complexity | b080327cea1f24f29f1b0a0dcb15f708 MD5 | raw file
  1. 'use strict';
  2. angular.module('dtServices', ['ngResource'])
  3. .factory("Login", function($resource) {
  4. return $resource(relay.url, relay.data({"end":"authentication.php"}), {})
  5. })
  6. .factory('DuckDuckGo', function($resource) { //http://api.duckduckgo.com/?q=DuckDuckGo&format=json&pretty=1
  7. return $resource(relay.url,{"api":"duckduckgo","format":"json"});
  8. })
  9. .factory('SecureThing', function($resource) {
  10. return $resource(relay.url,{"end":"secure/things.php","api":"secure"});
  11. })