chore(api): comment auth register route

This commit is contained in:
Leandro Antônio Farias Machado 2023-05-03 23:32:37 -03:00
parent bfb2acf0fa
commit 9fb997d457

View File

@ -39,7 +39,7 @@ func StartApi(a Api) {
r := mux.NewRouter() r := mux.NewRouter()
authentication := r.PathPrefix("/auth").Subrouter() authentication := r.PathPrefix("/auth").Subrouter()
authentication.HandleFunc("/login", a.generateToken).Methods("PUT") authentication.HandleFunc("/login", a.generateToken).Methods("PUT")
authentication.HandleFunc("/register", a.registerUser).Methods("POST") //authentication.HandleFunc("/register", a.registerUser).Methods("POST")
iot := r.PathPrefix("/device").Subrouter() iot := r.PathPrefix("/device").Subrouter()
iot.HandleFunc("/", a.retrieveDevices).Methods("GET") iot.HandleFunc("/", a.retrieveDevices).Methods("GET")
iot.HandleFunc("/{sn}/get", a.deviceGetMsg).Methods("PUT") iot.HandleFunc("/{sn}/get", a.deviceGetMsg).Methods("PUT")