You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
252 B

package routers
import (
"github.com/gin-gonic/gin"
"zggsong.cn/sandstone/server/api"
)
func CollectRoute(r *gin.Engine) *gin.Engine {
r.GET("/test", api.Test)
r.GET("/v1/records", api.ListRecords)
r.GET("/v1/record", api.GetRecord)
return r
}