Free cookie consent management tool by TermsFeed Policy Generator

source: branches/PersistenceOverhaul/HeuristicLab.Services.WebApp/3.3/WebApp/shared/services/authenticationService.js @ 18095

Last change on this file since 18095 was 12428, checked in by ascheibe, 9 years ago

#2394 added web app and status page to trunk

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.