code: func (service *Service) AddRoutes(router *mux.Router) {
  	service.router = router
  	router.HandleFunc("/v1/oauth/authorize", service.AuthorizeHandler).Methods("GET")
  	router.HandleFunc("/v1/oauth/authorize",
  		func(w http.ResponseWriter, r *http.Request) {
  			w.Header().Add("Allow", "GET")
  		}).Methods("OPTIONS")
  
  	router.HandleFunc("/v1/oauth/access_token", service.AccessTokenHandler).Methods("POST")
  	router.HandleFunc("/v1/oauth/access_token",
  		func(w http.ResponseWriter, r *http.Request) {
  			w.Header().Add("Allow", "POST")
  			// Allow cors
  			w.Header().Add("Access-Control-Allow-Origin", "*")
  			w.Header().Add("Access-Control-Allow-Methods", "POST")
  			// Allow all requested headers, we do not use them anyway
  			w.Header().Add("Access-Control-Allow-Headers", r.Header.Get("Access-Control-Request-Headers"))
  		}).Methods("OPTIONS")
  
  	router.HandleFunc("/v1/oauth/jwt", service.JWTHandler).Methods("POST", "GET")
  	router.HandleFunc("/v1/oauth/jwt",
  		func(w http.ResponseWriter, r *http.Request) {
  			w.Header().Add("Allow", "GET,POST")
  		}).Methods("OPTIONS")
  	router.HandleFunc("/v1/oauth/jwt/refresh", service.RefreshJWTHandler).Methods("POST", "GET")
  	router.HandleFunc("/v1/oauth/jwt/refresh",
  		func(w http.ResponseWriter, r *http.Request) {
  			w.Header().Add("Allow", "GET,POST")
  		}).Methods("OPTIONS")
  
  	InitModels()
  }
docs: //AddRoutes adds the routes and handlerfunctions to the router