Spaces:
Sleeping
Sleeping
File size: 317 Bytes
bb9df9e | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | package routers
import (
"sublink/api"
"github.com/gin-gonic/gin"
)
func Nodes(r *gin.Engine) {
NodesGroup := r.Group("/api/v1/nodes")
{
NodesGroup.POST("/add", api.NodeAdd)
NodesGroup.DELETE("/delete", api.NodeDel)
NodesGroup.GET("/get", api.NodeGet)
NodesGroup.POST("/update", api.NodeUpdadte)
}
}
|