0
0
mirror of https://github.com/vx3r/wg-gen-web.git synced 2024-11-04 17:31:17 +00:00
wg-gen-web/api/api.go

15 lines
255 B
Go
Raw Normal View History

2020-01-30 06:45:49 +00:00
package api
import (
"github.com/gin-gonic/gin"
2020-04-28 11:11:49 +00:00
"gitlab.127-0-0-1.fr/vx3r/wg-gen-web/api/v1"
2020-01-30 06:45:49 +00:00
)
2020-06-10 07:52:44 +00:00
// ApplyRoutes apply routes to gin engine
2020-04-28 11:11:49 +00:00
func ApplyRoutes(r *gin.Engine, private bool) {
api := r.Group("/api")
2020-01-30 06:45:49 +00:00
{
2020-04-28 11:11:49 +00:00
apiv1.ApplyRoutes(api, private)
}
}