From dab1666310f2f1e4651e097285dad38335b189f8 Mon Sep 17 00:00:00 2001 From: jholdstock Date: Tue, 18 Aug 2020 16:52:12 +0100 Subject: [PATCH] Only load .html files in template dir --- webapi/webapi.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webapi/webapi.go b/webapi/webapi.go index a4cdec5..b2d363e 100644 --- a/webapi/webapi.go +++ b/webapi/webapi.go @@ -167,7 +167,7 @@ func router(debugMode bool, cookieSecret []byte, dcrd rpc.DcrdConnect, wallets r } router := gin.New() - router.LoadHTMLGlob("webapi/templates/*") + router.LoadHTMLGlob("webapi/templates/*.html") // Recovery middleware handles any go panics generated while processing web // requests. Ensures a 500 response is sent to the client rather than