From e616df98557fe57fc942c360f03f7fafbdb965bd Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Fri, 5 Apr 2024 20:05:11 +0530 Subject: added functionality to get logged in user's data --- main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'main.go') 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) -- cgit v1.2.3