gin框架中的重定向

重定向redirect

func someRedirect(context *gin.Context) {
	context.Redirect(http.StatusMovedPermanently, "https://www.mayanan.cn")
}
posted @ 2021-12-09 16:41  专职  阅读(95)  评论(0编辑  收藏  举报