mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-08 19:50:05 +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
|
|
});
|
|
}
|
|
}
|
|
})(); |