dns.go 580 B

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