diff options
| author | Bobby <[email protected]> | 2026-03-08 18:17:23 +0530 |
|---|---|---|
| committer | Bobby <[email protected]> | 2026-03-08 18:17:23 +0530 |
| commit | 1136af49815be77a0aca151f3b8ec7348bf4b4c8 (patch) | |
| tree | ca4d94f981be59c51fa7d160e32be978a8d4b4fb /router | |
| parent | f48054e9bc5e4fb36b9aba9126c6ace9c5b1f470 (diff) | |
| download | dove-1136af49815be77a0aca151f3b8ec7348bf4b4c8.tar.xz dove-1136af49815be77a0aca151f3b8ec7348bf4b4c8.zip | |
feat(dns): add update functionality for DNS records (MX, SRV, TXT)
- Implemented UpdateMXRecord, UpdateSRVRecord, and UpdateTXTRecord functions in their respective repositories.
- Added UpdateRecord method in dns service to handle updates for various DNS record types.
- Updated router to include a new route for updating DNS records.
- Enhanced error messages for record updates in messages.go.
- Modified the frontend forms to support editing DNS records with improved UI components.
- Refactored existing domain management code to remove unused update functionality.
- Improved email handling by adding MX record validation during email delivery.
Diffstat (limited to 'router')
| -rw-r--r-- | router/domain.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/router/domain.go b/router/domain.go index 482cbd0..a3a2164 100644 --- a/router/domain.go +++ b/router/domain.go @@ -21,10 +21,9 @@ func init() { urls.Path(urls.Get, "/manage", auth.RequireAuthentication(domainPage.Domains), "manage") urls.Path(urls.Get, "/manage/new", auth.RequireAuthentication(domainPage.NewDomain), "manage.new") urls.Path(urls.Post, "/manage", auth.RequireAuthentication(domainController.CreateDomain), "manage.create") - urls.Path(urls.Get, "/manage/:id/edit", auth.RequireAuthentication(domainPage.EditDomain), "manage.edit") - urls.Path(urls.Put, "/manage/:id", auth.RequireAuthentication(domainController.UpdateDomain), "manage.update") urls.Path(urls.Delete, "/manage/:id", auth.RequireAuthentication(domainController.DeleteDomain), "manage.delete") urls.Path(urls.Get, "/manage/:id", auth.RequireAuthentication(domainPage.DomainDetail), "manage.detail") urls.Path(urls.Post, "/records", auth.RequireAuthentication(dnsController.CreateRecord), "records.create") + urls.Path(urls.Put, "/records/:type/:id", auth.RequireAuthentication(dnsController.UpdateRecord), "records.update") urls.Path(urls.Delete, "/records/:type/:id", auth.RequireAuthentication(dnsController.DeleteRecord), "records.delete") -}
\ No newline at end of file +} |
