0
0
mirror of https://github.com/vx3r/wg-gen-web.git synced 2024-12-18 00:13:23 +00:00
wg-gen-web/api/api.go
2020-06-10 16:52:44 +09:00

15 lines
255 B
Go

package api
import (
"github.com/gin-gonic/gin"
"gitlab.127-0-0-1.fr/vx3r/wg-gen-web/api/v1"
)
// ApplyRoutes apply routes to gin engine
func ApplyRoutes(r *gin.Engine, private bool) {
api := r.Group("/api")
{
apiv1.ApplyRoutes(api, private)
}
}