summaryrefslogtreecommitdiff
path: root/src/chef/pages/admin.clj
diff options
context:
space:
mode:
Diffstat (limited to 'src/chef/pages/admin.clj')
-rw-r--r--src/chef/pages/admin.clj11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/chef/pages/admin.clj b/src/chef/pages/admin.clj
index c06b475..3e2b0a1 100644
--- a/src/chef/pages/admin.clj
+++ b/src/chef/pages/admin.clj
@@ -1,10 +1,11 @@
(ns chef.pages.admin
- (:require [chef.pages.utils :as cputils]
+ (:require [chef.utils :as cutils]
[hiccup2.core :as html]
[ring.util.response :as ruresp]))
(defn handler [req]
- (-> (cputils/gen-page "chef - Dashboard" [:i "Coming soon..."])
- html/html
- str
- ruresp/response))
+ (cutils/auth-only req
+ (-> (cutils/gen-page "chef - Dashboard" [:i "Coming soon..."])
+ html/html
+ str
+ ruresp/response)))