diff --git a/avRegistration/auth-method-service.js b/avRegistration/auth-method-service.js index 2f4b262c..31e0e301 100644 --- a/avRegistration/auth-method-service.js +++ b/avRegistration/auth-method-service.js @@ -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()) { diff --git a/dist/appCommon-v10.4.2.js b/dist/appCommon-v10.4.2.js index 77abe9fc..6276caa0 100644 --- a/dist/appCommon-v10.4.2.js +++ b/dist/appCommon-v10.4.2.js @@ -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 = {