Matteo Scandolo | d5f3d05 | 2016-05-02 15:29:37 -0700 | [diff] [blame] | 1 | (function() { |
| 2 | 'use strict'; |
| 3 | |
| 4 | angular.module('xos.helpers') |
| 5 | /** |
| 6 | * @ngdoc service |
| 7 | * @name xos.helpers.Login |
| 8 | * @description Angular resource to fetch /api/utility/login/ |
| 9 | **/ |
| 10 | .service('Login', function($resource){ |
| 11 | return $resource('/api/utility/login/'); |
| 12 | }) |
| 13 | /** |
| 14 | * @ngdoc service |
| 15 | * @name xos.helpers.Logout |
| 16 | * @description Angular resource to fetch /api/utility/logout/ |
| 17 | **/ |
| 18 | .service('Logout', function($resource){ |
| 19 | return $resource('/api/utility/logout/'); |
| 20 | }) |
| 21 | })(); |