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.
|
|
|
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
|
|
|
|
}
|