-
-
Save glenjamin/81983d5a18a96e022196 to your computer and use it in GitHub Desktop.
Error conditions in controllers
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(POST "/profile/:user" [user & body] | |
(let [account (db-could-fail/get-account user) | |
result (external-service/save (:id account) body)] | |
(redirect (:location result))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment