/js/services.js
JavaScript | 12 lines | 11 code | 1 blank | 0 comment | 0 complexity | b080327cea1f24f29f1b0a0dcb15f708 MD5 | raw file
- 'use strict';
- angular.module('dtServices', ['ngResource'])
- .factory("Login", function($resource) {
- return $resource(relay.url, relay.data({"end":"authentication.php"}), {})
- })
- .factory('DuckDuckGo', function($resource) { //http://api.duckduckgo.com/?q=DuckDuckGo&format=json&pretty=1
- return $resource(relay.url,{"api":"duckduckgo","format":"json"});
- })
- .factory('SecureThing', function($resource) {
- return $resource(relay.url,{"end":"secure/things.php","api":"secure"});
- })