diff options
author | Vidhu Kant Sharma <vidhukant@vidhukant.com> | 2024-04-05 20:05:11 +0530 |
---|---|---|
committer | Vidhu Kant Sharma <vidhukant@vidhukant.com> | 2024-04-05 20:05:11 +0530 |
commit | e616df98557fe57fc942c360f03f7fafbdb965bd (patch) | |
tree | 410f1d89bf82f2cb33b63e5b97c72c496ac36940 /main.go | |
parent | 73d7fe9411f4a9a0b849d9b42051e67ca19c25ec (diff) |
added functionality to get logged in user's datav0.6.0
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) |