如何制作一个文件来处理 vercel 无服务器功能的所有路由?
默认情况下它使用内置处理程序有没有办法使用 gin 模块来做同样的事情?
package handler
import "github.com/gin-gonic/gin"
/* get the post data and send the same data as response */
func Hi(c *gin.Context) {
c.JSON(200, gin.H{
"message": "Hello World!",
})
}
慕容3067478
相关分类