2020-01-30 06:45:49 +00:00
|
|
|
package api
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/gin-gonic/gin"
|
2021-04-06 12:23:23 +00:00
|
|
|
"github.com/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)
|
2020-03-06 10:43:32 +00:00
|
|
|
}
|
2020-02-25 08:45:44 +00:00
|
|
|
}
|