From 6bc184bacb12b6ede89b8780138bacee5312950e Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Wed, 16 Nov 2022 20:49:10 +0530 Subject: added endpoint to validate and create new user --- main.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'main.go') diff --git a/main.go b/main.go index 29378cb..d70ab89 100644 --- a/main.go +++ b/main.go @@ -22,7 +22,9 @@ import ( "github.com/MikunoNaka/OpenBills-server/item" "github.com/MikunoNaka/OpenBills-server/client" "github.com/MikunoNaka/OpenBills-server/invoice" + "github.com/MikunoNaka/OpenBills-server/user" "github.com/MikunoNaka/OpenBills-server/database" + "github.com/MikunoNaka/OpenBills-server/auth" "github.com/gin-gonic/gin" ) @@ -31,12 +33,14 @@ func main() { defer database.DisconnectDB() r := gin.New() - r.LoadHTMLGlob("web/templates/**/*") + r.LoadHTMLGlob("web/templates/**/*") item.Routes(r) brand.Routes(r) client.Routes(r) invoice.Routes(r) + user.Routes(r) + auth.Routes(r) r.Run(":6969") } -- cgit v1.2.3