mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-03 23:54:00 +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
|
|
});
|
|
}
|
|
}
|
|
})(); |