From ff2d444d27eebfd093c2542eb798b1d4c708aab3 Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Sun, 19 Oct 2025 20:44:11 +0530 Subject: added config routes --- main.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'main.go') diff --git a/main.go b/main.go index 8dc0c7d..6cbf76a 100644 --- a/main.go +++ b/main.go @@ -27,6 +27,7 @@ import ( // routes "vidhukant.com/openbills/auth" + "vidhukant.com/openbills/config" "vidhukant.com/openbills/customer" "vidhukant.com/openbills/invoice" "vidhukant.com/openbills/item" @@ -38,7 +39,7 @@ import ( "log" ) -const OPENBILLS_VERSION = "v0.24.0" +const OPENBILLS_VERSION = "v0.25.0" func init() { if !viper.GetBool("debug_mode") { @@ -64,10 +65,11 @@ func main() { protected := api.Group("/") protected.Use(auth.Authorize()) { - user.Routes(protected) + config.Routes(protected) customer.Routes(protected) - item.Routes(protected) invoice.Routes(protected) + item.Routes(protected) + user.Routes(protected) } log.Printf("\x1b[46m\x1b[30m[info]\x1b[0m Running OpenBills Server %s\n", OPENBILLS_VERSION) -- cgit v1.2.3