summaryrefslogtreecommitdiff
path: root/nexus/utils/urls/attach.go
diff options
context:
space:
mode:
Diffstat (limited to 'nexus/utils/urls/attach.go')
-rw-r--r--nexus/utils/urls/attach.go12
1 files changed, 12 insertions, 0 deletions
diff --git a/nexus/utils/urls/attach.go b/nexus/utils/urls/attach.go
new file mode 100644
index 0000000..b8a1458
--- /dev/null
+++ b/nexus/utils/urls/attach.go
@@ -0,0 +1,12 @@
+package urls
+
+import "github.com/gofiber/fiber/v2"
+
+func Attach(application *fiber.App) {
+ registry.Mutex.Lock()
+ defer registry.Mutex.Unlock()
+
+ for _, route := range registry.Routes.All() {
+ bindPath(application, route)
+ }
+}