router.go 230 B

12345678910111213
  1. package controller
  2. import (
  3. "github.com/gin-gonic/gin"
  4. "github.com/langgenius/dify-sandbox/internal/middleware"
  5. )
  6. func Setup(eng *gin.Engine) {
  7. eng.Use(middleware.Auth())
  8. eng.POST("/v1/sandbox/run", RunSandboxController)
  9. }