From 10eb82c7c00a0a1a75528644fbfbe108a769207f Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Fri, 11 Nov 2022 22:57:19 +0530 Subject: serving created invoices as both HTML and JSON --- main.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'main.go') diff --git a/main.go b/main.go index 76c09dc..29378cb 100644 --- a/main.go +++ b/main.go @@ -31,6 +31,8 @@ func main() { defer database.DisconnectDB() r := gin.New() + r.LoadHTMLGlob("web/templates/**/*") + item.Routes(r) brand.Routes(r) client.Routes(r) -- cgit v1.2.3