dns.go 735 B

12345678910111213141516171819202122232425262728
  1. package routes
  2. import (
  3. "byom-infra-api/handlers"
  4. "net/http"
  5. )
  6. var dnsHandler = handlers.NewDNSHandler()
  7. // CreateDNSRecord forwards the request to the DNSHandler
  8. func CreateDNSRecord(w http.ResponseWriter, r *http.Request) {
  9. dnsHandler.CreateDNSRecord(w, r)
  10. }
  11. // DeleteDNSRecord forwards the request to the DNSHandler
  12. func DeleteDNSRecord(w http.ResponseWriter, r *http.Request) {
  13. dnsHandler.DeleteDNSRecord(w, r)
  14. }
  15. // ListDNSRecords forwards the request to the DNSHandler
  16. func ListDNSRecords(w http.ResponseWriter, r *http.Request) {
  17. dnsHandler.ListDNSRecords(w, r)
  18. }
  19. // GetDNSRecordID forwards the request to the DNSHandler
  20. func GetDNSRecordID(w http.ResponseWriter, r *http.Request) {
  21. dnsHandler.GetDNSRecordID(w, r)
  22. }