|
@ -55,7 +55,7 @@ func main() { |
|
|
// Setup HTTP endpoints.
|
|
|
// Setup HTTP endpoints.
|
|
|
http.HandleFunc("/register", gateway.Register(client)) |
|
|
http.HandleFunc("/register", gateway.Register(client)) |
|
|
http.HandleFunc("/login", gateway.Login(client)) |
|
|
http.HandleFunc("/login", gateway.Login(client)) |
|
|
http.HandleFunc("/logout", gateway.Authorize(client, &config.Server.Secret, gateway.Logout(client))) |
|
|
|
|
|
|
|
|
http.HandleFunc("/logout", gateway.Authorize(client, config.Server.Secret, gateway.Logout(client))) |
|
|
http.HandleFunc("/reset_password", gateway.ResetPassword(client, fmt.Sprintf("%s, %d", config.Domain, config.Port))) |
|
|
http.HandleFunc("/reset_password", gateway.ResetPassword(client, fmt.Sprintf("%s, %d", config.Domain, config.Port))) |
|
|
http.HandleFunc("/change_password", gateway.ChangePassword(client)) |
|
|
http.HandleFunc("/change_password", gateway.ChangePassword(client)) |
|
|
|
|
|
|
|
|