source:
stable/HeuristicLab.Services.WebApp/3.3/WebApp/shared/services/authenticationService.js
@
12563
Last change on this file since 12563 was 12428, checked in by ascheibe, 9 years ago | |
---|---|
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.