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
Show hidden characters
;; Een function die een game als input neemt en een response map terug geeft
(defn create [game]
{:status 201
;; de str function concateneerd de verschillende delen
:headers {"Location" (str "/games/" (game :id))}})
view raw
Controller.clj
hosted with ❤ by
GitHub