aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorVidhu Kant Sharma <vidhukant@vidhukant.com>2024-04-05 20:05:11 +0530
committerVidhu Kant Sharma <vidhukant@vidhukant.com>2024-04-05 20:05:11 +0530
commite616df98557fe57fc942c360f03f7fafbdb965bd (patch)
tree410f1d89bf82f2cb33b63e5b97c72c496ac36940 /main.go
parent73d7fe9411f4a9a0b849d9b42051e67ca19c25ec (diff)
added functionality to get logged in user's datav0.6.0
Diffstat (limited to 'main.go')
-rw-r--r--main.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.go b/main.go
index 958f939..ff12523 100644
--- a/main.go
+++ b/main.go
@@ -38,7 +38,7 @@ import (
"log"
)
-const OPENBILLS_VERSION = "v0.5.0"
+const OPENBILLS_VERSION = "v0.6.0"
func init() {
if !viper.GetBool("debug_mode") {
@@ -55,13 +55,13 @@ func main() {
api := r.Group("/api")
api.Use(errors.ErrResponse())
{
- user.Routes(api)
auth.Routes(api)
}
protected := api.Group("/")
protected.Use(auth.Authorize())
{
+ user.Routes(protected)
customer.Routes(protected)
item.Routes(protected)
invoice.Routes(protected)