diff options
Diffstat (limited to 'router/domain.go')
| -rw-r--r-- | router/domain.go | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/router/domain.go b/router/domain.go index 5658cf2..50b1163 100644 --- a/router/domain.go +++ b/router/domain.go @@ -10,10 +10,12 @@ import ( func init() { urls.SetNamespace("domains") - urls.Path(urls.Get, "/domains", auth.RequireAuthentication(domainPage.Domains), "index") - urls.Path(urls.Get, "/domains/new", auth.RequireAuthentication(domainPage.NewDomain), "new") - urls.Path(urls.Post, "/domains", auth.RequireAuthentication(domainController.CreateDomain), "create") - urls.Path(urls.Get, "/domains/tlds/new", auth.RequireAuthentication(domainPage.NewTLD), "tlds.new") - urls.Path(urls.Post, "/domains/tlds", auth.RequireAuthentication(domainController.CreateTLD), "tlds.create") - urls.Path(urls.Delete, "/domains/tlds/:name", auth.RequireAuthentication(domainController.DeleteTLD), "tlds.delete") + urls.Path(urls.Get, "/", auth.RequireAuthentication(domainPage.Index), "index") + urls.Path(urls.Get, "/tlds", auth.RequireAuthentication(domainPage.TLDs), "tlds") + urls.Path(urls.Get, "/tlds/new", auth.RequireAuthentication(domainPage.NewTLD), "tlds.new") + urls.Path(urls.Post, "/tlds", auth.RequireAuthentication(domainController.CreateTLD), "tlds.create") + urls.Path(urls.Delete, "/tlds/:name", auth.RequireAuthentication(domainController.DeleteTLD), "tlds.delete") + 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") } |
