Skip to content

Commit

Permalink
add auth mw
Browse files Browse the repository at this point in the history
  • Loading branch information
niquola committed Sep 6, 2023
1 parent 2d07fb1 commit 8d642d1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions zrc/zd.edn
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,15 @@
re-validate
{:zen/tags #{zen-web/op zen/op}}

auth
{:zen/tags #{zen-web/middleware zen/op zen-web/op}
:dir #{:in}
:zen/desc "call auth hook"}

api
{:zen/tags #{zen-web/api}
:engine zen-web/routemap
:mw [auth]
;; TODO move zen web defaults to zen web core
;; :mw [zen-web/defaults]
"_errors" {:GET check-errors}
Expand Down

0 comments on commit 8d642d1

Please sign in to comment.