mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-14 14:25:36 +01:00
26 lines
532 B
JavaScript
26 lines
532 B
JavaScript
(function() {
|
|
|
|
'use strict';
|
|
|
|
angular
|
|
.module('harbor.services.user')
|
|
.factory('SignUpService', SignUpService);
|
|
|
|
SignUpService.$inject = ['$http', '$log'];
|
|
|
|
function SignUpService($http, $log) {
|
|
|
|
return SignUp;
|
|
|
|
function SignUp(user) {
|
|
return $http
|
|
.post('/api/users', {
|
|
'username': user.username,
|
|
'email': user.email,
|
|
'password': user.password,
|
|
'realname': user.realname,
|
|
'comment': user.comment
|
|
});
|
|
}
|
|
}
|
|
})(); |