|
|
@ -37,9 +37,10 @@ func Registry(engine *gin.Engine) {
|
|
|
|
apiR.GET("/soup", soup.GetRandSoup)
|
|
|
|
apiR.GET("/soup", soup.GetRandSoup)
|
|
|
|
apiR.GET("/almanac", almanac.Almanac)
|
|
|
|
apiR.GET("/almanac", almanac.Almanac)
|
|
|
|
apiR.GET("/dirty_word", dirty.IsDirtyWord)
|
|
|
|
apiR.GET("/dirty_word", dirty.IsDirtyWord)
|
|
|
|
|
|
|
|
apiR.Static("/video", "./static/")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
func myIp(ctx *gin.Context) {
|
|
|
|
func myIp(ctx *gin.Context) {
|
|
|
|
addr := ctx.Request.RemoteAddr
|
|
|
|
addr := ctx.ClientIP()
|
|
|
|
ctx.String(http.StatusOK, addr)
|
|
|
|
ctx.String(http.StatusOK, addr)
|
|
|
|
}
|
|
|
|
}
|
|
|
|