summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorVidhu Kant Sharma <vidhukant@vidhukant.xyz>2022-11-11 22:57:19 +0530
committerVidhu Kant Sharma <vidhukant@vidhukant.xyz>2022-11-11 22:57:19 +0530
commit10eb82c7c00a0a1a75528644fbfbe108a769207f (patch)
treeac5d413830d8e1f15985450230fe20490966fcb6 /main.go
parent2f4a92b0f1d02096427a2d1c97746bb52cdcc38a (diff)
serving created invoices as both HTML and JSON
Diffstat (limited to 'main.go')
-rw-r--r--main.go2
1 files changed, 2 insertions, 0 deletions
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)