diff options
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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) |