PageRenderTime 32ms CodeModel.GetById 30ms app.highlight 1ms 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
 3angular.module('dtServices', ['ngResource'])
 4.factory("Login", function($resource) {
 5  return $resource(relay.url, relay.data({"end":"authentication.php"}), {})
 6})
 7.factory('DuckDuckGo', function($resource) { //http://api.duckduckgo.com/?q=DuckDuckGo&format=json&pretty=1
 8  return $resource(relay.url,{"api":"duckduckgo","format":"json"});
 9})
10.factory('SecureThing', function($resource) {
11  return $resource(relay.url,{"end":"secure/things.php","api":"secure"});
12})