routing.go 356 B

12345678910111213141516
  1. package httpserver
  2. import "github.com/gin-gonic/gin"
  3. /*
  4. Registers the exposed route to utilize the handler function
  5. :param e: pointer to a gin.Engine struct
  6. :param cfg: pointer to an HttpServerConfig struct
  7. */
  8. func RegisterRoutes(e *gin.Engine, cfg *HttpServerConfig) {
  9. c := NewController(cfg)
  10. web := e.Group("")
  11. web.Any("/*ProxiedPath", c.Get)
  12. }