sshkey.go 941 B

123456789101112131415161718192021222324252627282930313233
  1. package routes
  2. import (
  3. "byom-infra-api/handlers"
  4. "net/http"
  5. )
  6. var sshKeyHandler = handlers.NewSSHKeyHandler()
  7. // GetSSHKeys forwards the request to the SSHKeyHandler
  8. func GetSSHKeys(w http.ResponseWriter, r *http.Request) {
  9. sshKeyHandler.GetSSHKeys(w, r)
  10. }
  11. // GetSSHKeyByID forwards the request to the SSHKeyHandler
  12. func GetSSHKeyByID(w http.ResponseWriter, r *http.Request) {
  13. sshKeyHandler.GetSSHKeyByID(w, r)
  14. }
  15. // CreateSSHKey forwards the request to the SSHKeyHandler
  16. func CreateSSHKey(w http.ResponseWriter, r *http.Request) {
  17. sshKeyHandler.CreateSSHKey(w, r)
  18. }
  19. // // CreateSSHKeyWithGeneration forwards the request to the SSHKeyHandler
  20. // func CreateSSHKeyWithGeneration(w http.ResponseWriter, r *http.Request) {
  21. // sshKeyHandler.CreateSSHKeyWithGeneration(w, r)
  22. // }
  23. // DeleteSSHKey forwards the request to the SSHKeyHandler
  24. func DeleteSSHKey(w http.ResponseWriter, r *http.Request) {
  25. sshKeyHandler.DeleteSSHKey(w, r)
  26. }