Only load .html files in template dir

This commit is contained in:
jholdstock 2020-08-18 16:52:12 +01:00 committed by David Hill
parent e2483b6cea
commit dab1666310

View File

@ -167,7 +167,7 @@ func router(debugMode bool, cookieSecret []byte, dcrd rpc.DcrdConnect, wallets r
} }
router := gin.New() router := gin.New()
router.LoadHTMLGlob("webapi/templates/*") router.LoadHTMLGlob("webapi/templates/*.html")
// Recovery middleware handles any go panics generated while processing web // Recovery middleware handles any go panics generated while processing web
// requests. Ensures a 500 response is sent to the client rather than // requests. Ensures a 500 response is sent to the client rather than