sshkey.go 422 B

123456789101112131415161718
  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. }