Free cookie consent management tool by TermsFeed Policy Generator

source: branches/HiveStatistics/sources/HeuristicLab.Services.WebApp/WebApp/shared/services/authenticationService.js @ 12425

Last change on this file since 12425 was 12425, checked in by dglaser, 9 years ago

#2388: Added PluginManager and updated WebApp project

File size: 472 bytes
Line 
1(function () {
2    var apiUrl = 'api/App/Authentication/';
3    var module = appMainPlugin.getAngularModule();
4    module.factory('app.authentication.service',
5        ['$resource', function ($resource) {
6            return $resource(apiUrl + ':action', { user: "@user" }, {
7                login: { method: 'POST', params: { action: 'Login' } },
8                logout: { method: 'POST', params: { action: 'Logout' } }
9            });
10        }]
11    );
12})();
Note: See TracBrowser for help on using the repository browser.