diff --git a/TODO b/TODO
index 22eac60..035c319 100644
--- a/TODO
+++ b/TODO
@@ -1,4 +1,3 @@
-- list existing domains
- logging
- expect statements (pretend it's "expected", not "expect")
- map_unexpected annotation string
diff --git a/src/service.rs b/src/service.rs
index fc55149..f731c0f 100644
--- a/src/service.rs
+++ b/src/service.rs
@@ -288,6 +288,36 @@ where
self.render_page("/domain_sync.html", response)
}
+
+ pub fn domains(&self) -> SvcResponse {
+ #[derive(Serialize)]
+ struct Response {
+ domains: Vec Below are listed all domains which this Domiply instance is currently
+servingAll Domains
+
+
+{{ #each data.domains }}
+
diff --git a/src/service/http_tpl/index.html b/src/service/http_tpl/index.html
index 7296380..6ed880e 100644
--- a/src/service/http_tpl/index.html
+++ b/src/service/http_tpl/index.html
@@ -29,7 +29,7 @@ been set up.
Or you can do any of the following alternative actions: