mirror of
https://github.com/vx3r/wg-gen-web.git
synced 2024-11-26 04:19:41 +01:00
15 lines
246 B
Go
15 lines
246 B
Go
package api
|
|
|
|
import (
|
|
"github.com/gin-gonic/gin"
|
|
"github.com/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)
|
|
}
|
|
}
|