diff options
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)  |