12345678910111213141516171819202122232425262728 |
- package routes
- import (
- "byom-infra-api/handlers"
- "net/http"
- )
- var dnsHandler = handlers.NewDNSHandler()
- // CreateDNSRecord forwards the request to the DNSHandler
- func CreateDNSRecord(w http.ResponseWriter, r *http.Request) {
- dnsHandler.CreateDNSRecord(w, r)
- }
- // DeleteDNSRecord forwards the request to the DNSHandler
- func DeleteDNSRecord(w http.ResponseWriter, r *http.Request) {
- dnsHandler.DeleteDNSRecord(w, r)
- }
- // ListDNSRecords forwards the request to the DNSHandler
- func ListDNSRecords(w http.ResponseWriter, r *http.Request) {
- dnsHandler.ListDNSRecords(w, r)
- }
- // GetDNSRecordID forwards the request to the DNSHandler
- func GetDNSRecordID(w http.ResponseWriter, r *http.Request) {
- dnsHandler.GetDNSRecordID(w, r)
- }
|