普通路由
package main
import (
"net/http"
"github.com/gin-gonic/gin"
)
func F1(c *gin.Context) {
c.JSON(http.StatusOK, gin.H{
"method": "GET",
})
}
func F2(c *gin.Context) {
c.JSON(http.StatusOK, gin.H{
"method": "POST",
})
}
func F3(c *gin.Context) {
c.JSON(http.StatusOK, gin.H{
"method": "PUT",
})
}
func F4(c *gin.Context) {
c.JSON(http.StatusOK