Browse Source

feat(go): add db middleware;

Vishal Dalwadi 4 tháng trước cách đây
mục cha
commit
620fb17281
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      controllers/controller.go

+ 2 - 0
controllers/controller.go

@@ -3,6 +3,7 @@ package controller
 import (
 	"context"
 	"fmt"
+	"github.com/gravitl/netmaker/db"
 	"net/http"
 	"os"
 	"strings"
@@ -18,6 +19,7 @@ import (
 
 // HttpMiddlewares - middleware functions for REST interactions
 var HttpMiddlewares = []mux.MiddlewareFunc{
+	db.Middleware,
 	userMiddleWare,
 }