Skip to content

Latest commit

 

History

History
18 lines (15 loc) · 321 Bytes

README.md

File metadata and controls

18 lines (15 loc) · 321 Bytes

ginproxy

A very simple proxy handler for gin-gonic

Can be used like this:

import (
	"github.com/gin-gonic/gin"
	"github.com/abrander/ginproxy"
)

func main() {
	router := gin.Default()
	g, _ := ginproxy.NewGinProxy("http://backend01.example.com/")
	router.Any("/api/*all", g.Handler)
	router.Run(":8080")
}