Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
Findeton committed Jun 22, 2024
1 parent 937dedb commit 9e042fe
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
9 changes: 9 additions & 0 deletions avRegistration/auth-method-service.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,15 @@ angular.module('avRegistration')
var eid = authevent || authId;
return $http.post(backendUrl + 'auth-event/'+eid+'/register/', data);
};

authmethod.createLivePreview = function(data) {
return $http.post(backendUrl + 'auth-event/live-preview/', data);
};

authmethod.getLivePreview = function(id) {
var url = backendUrl + 'auth-event/'+ id + '/live-preview/';
return $http.get(url);
};

authmethod.getUserInfoExtra = function() {
if (!authmethod.isLoggedIn()) {
Expand Down
7 changes: 7 additions & 0 deletions dist/appCommon-v10.4.2.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,13 @@ angular.module("avRegistration").config(function() {}), angular.module("avRegist
eid = eid || authId;
return $http.post(backendUrl + "auth-event/" + eid + "/register/", data);
},
createLivePreview: function(data) {
return $http.post(backendUrl + "auth-event/live-preview/", data);
},
getLivePreview: function(url) {
url = backendUrl + "auth-event/" + url + "/live-preview/";
return $http.get(url);
},
getUserInfoExtra: function() {
if (authmethod.isLoggedIn()) return $http.get(backendUrl + "user/extra/", {});
var data = {
Expand Down

0 comments on commit 9e042fe

Please sign in to comment.