From 9e042feef53d650de6101c57cebde426d42b7b8a Mon Sep 17 00:00:00 2001 From: Findeton Date: Sat, 22 Jun 2024 09:51:28 -0500 Subject: [PATCH] wip --- avRegistration/auth-method-service.js | 9 +++++++++ dist/appCommon-v10.4.2.js | 7 +++++++ 2 files changed, 16 insertions(+) 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 = {