Skip to content
Permalink
Browse files

End middleware code example with backticks

  • Loading branch information...
swlkr committed Mar 17, 2019
1 parent e392fa7 commit 9bbc8648a094e493629673acec031241fb443730
Showing with 1 addition and 0 deletions.
  1. +1 −0 docs/middleware.md
@@ -24,6 +24,7 @@ To create a new middleware, Coast's convention is to define a [ring middleware](
(if (some? (:session request))
(handler request)
(coast/unauthorized "No"))))
```
In the example `auth` middleware, we want to show a 401 unauthorized response if there is no session

0 comments on commit 9bbc864

Please sign in to comment.
You can’t perform that action at this time.