aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
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)