|
@ -28,7 +28,10 @@ func main() { |
|
|
c.File("assets/favicon.ico") |
|
|
c.File("assets/favicon.ico") |
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|
router.Static("/.well-known", "public/.well-known") |
|
|
|
|
|
|
|
|
router.GET("/.well-known/acme-challenge/:file", func(c *gin.Context) { |
|
|
|
|
|
fullpath := "public/.well-known/acme-challenge/" + c.Param("file") |
|
|
|
|
|
c.File(fullpath) |
|
|
|
|
|
}) |
|
|
|
|
|
|
|
|
router.GET("/ping", func(c *gin.Context) { |
|
|
router.GET("/ping", func(c *gin.Context) { |
|
|
c.String(http.StatusOK, "pong") |
|
|
c.String(http.StatusOK, "pong") |
|
|