123456789101112131415161718192021222324252627282930313233 |
- package routes
- import (
- "byom-infra-api/handlers"
- "net/http"
- )
- var sshKeyHandler = handlers.NewSSHKeyHandler()
- // GetSSHKeys forwards the request to the SSHKeyHandler
- func GetSSHKeys(w http.ResponseWriter, r *http.Request) {
- sshKeyHandler.GetSSHKeys(w, r)
- }
- // GetSSHKeyByID forwards the request to the SSHKeyHandler
- func GetSSHKeyByID(w http.ResponseWriter, r *http.Request) {
- sshKeyHandler.GetSSHKeyByID(w, r)
- }
- // CreateSSHKey forwards the request to the SSHKeyHandler
- func CreateSSHKey(w http.ResponseWriter, r *http.Request) {
- sshKeyHandler.CreateSSHKey(w, r)
- }
- // // CreateSSHKeyWithGeneration forwards the request to the SSHKeyHandler
- // func CreateSSHKeyWithGeneration(w http.ResponseWriter, r *http.Request) {
- // sshKeyHandler.CreateSSHKeyWithGeneration(w, r)
- // }
- // DeleteSSHKey forwards the request to the SSHKeyHandler
- func DeleteSSHKey(w http.ResponseWriter, r *http.Request) {
- sshKeyHandler.DeleteSSHKey(w, r)
- }
|