aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/main.go
diff options
context:
space:
mode:
authorVidhu Kant Sharma <vidhukant@vidhukant.com>2025-10-19 20:44:11 +0530
committerVidhu Kant Sharma <vidhukant@vidhukant.com>2025-10-19 20:44:11 +0530
commitff2d444d27eebfd093c2542eb798b1d4c708aab3 (patch)
tree10364a01848039959ab9b2df4009ef993d6176d8 /main.go
parent34d7bc9e99461cd275dd96330009dbe3ad17d082 (diff)
added config routesHEADv0.25.0master
Diffstat (limited to 'main.go')
-rw-r--r--main.go8
1 files changed, 5 insertions, 3 deletions
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)