package server import ( "github.com/gin-gonic/gin" domain "github.com/haydenhargreaves/Potion/internal/domain/server" ) // DepedencyInjectionMiddleware injects the dependencies into the context set. This is a middleware // that is used to apply the required services. func DepedencyInjectionMiddleware(deps *domain.InjectedDependencies) gin.HandlerFunc { return func(ctx *gin.Context) { ctx.Set("deps", deps) ctx.Next() } }