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.
 
 
 
 
 
 

16 lines
234 B

package admin
import (
"godocms/middleware"
"github.com/gin-gonic/gin"
)
func init() {
middleware.RegisterRouter("POST", "/api/v1/test", test, 0, "test")
}
func test(c *gin.Context) {
c.JSON(200, gin.H{
"msg": "hello",
})
}