diff options
author | Tim <contact@bytim.eu> | 2025-05-10 10:59:30 +0200 |
---|---|---|
committer | Tim <contact@bytim.eu> | 2025-05-10 10:59:30 +0200 |
commit | 77594fd2b62e4ea3e6a55fed2dabcce50e618bd3 (patch) | |
tree | 5ddfa7589b5d9a46dbd40d5eea49c3e782c22d1a /src/chef/pages/admin.clj | |
parent | 79e32a55801fc53c8d60843c6676ca05cc899299 (diff) | |
download | chef-77594fd2b62e4ea3e6a55fed2dabcce50e618bd3.tar.xz chef-77594fd2b62e4ea3e6a55fed2dabcce50e618bd3.zip |
Add oauth for admin interface
Diffstat (limited to 'src/chef/pages/admin.clj')
-rw-r--r-- | src/chef/pages/admin.clj | 11 |
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))) |