From cc048c41ea4b9e844a932c68a15c42031e453385 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Micha=C3=ABl=20Minelli?= <michael@minelli.me>
Date: Mon, 3 Jul 2023 15:32:49 +0200
Subject: [PATCH] DojoValidators => template sany. : Add default template
 address

---
 ExpressAPI/src/helpers/DojoValidators.ts | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/ExpressAPI/src/helpers/DojoValidators.ts b/ExpressAPI/src/helpers/DojoValidators.ts
index aae3e1a..a5e22d7 100644
--- a/ExpressAPI/src/helpers/DojoValidators.ts
+++ b/ExpressAPI/src/helpers/DojoValidators.ts
@@ -93,13 +93,14 @@ class DojoValidators {
                                                                               const template = this.getParamValue(req, path);
                                                                               if ( template ) {
                                                                                   return `${ Config.gitlab.urls[0].replace(/^([a-z]{3,5}:\/{2})?(.*)/, `$1${ Config.gitlab.account.username }:${ Config.gitlab.account.token }@$2`) }${ template }.git`;
+                                                                              } else {
+                                                                                  return Config.enonce.default.template;
                                                                               }
                                                                           } catch ( e ) { }
 
                                                                           return value;
                                                                       }
                                                                   });
-
 }
 
 
-- 
GitLab