source:
trunk/sources/HeuristicLab.Services.WebApp/3.3/WebApp/shared/services/authenticationService.js
@
15405
Last change on this file since 15405 was 12428, checked in by ascheibe, 10 years ago | |
---|---|
File size: 472 bytes |
Rev | Line | |
---|---|---|
[12428] | 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.