                   ;; Add the type prior to upserting
                   (assoc :hecuba/type typ)))})
 
-  :handle-created ; do this upon a successful POST
+  :handle-created                       ; do this upon a successful POST
   (fn [{{routes :jig.bidi/routes route-params :route-params} :request id :hecuba/id}]
-    (ring-response ; Liberator, we're returning an actual Ring map!
+    (ring-response      ; Liberator, we're returning an actual Ring map!
      ;; We must return the new resource path in the HTTP Location
      ;; header. Liberator doesn't do this for us, and clients might need
      ;; to know where the new resource is located.
      ;; See http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.2.2
-     {:headers {"Location" (->> id
-                                ;; Set id but keep existing route params
-                                (assoc route-params :hecuba/id)
-                                ;; Flatten into the keyword param form
-                                (apply concat)
-                                ;; Ask bidi to return the Location URI
-                                (apply path-for routes item-resource))}})))
+     {:headers {"Location"
+                (->> id                ; essentially the id
+                     ;; but keep existing route params
+                     (assoc route-params :hecuba/id)
+                     ;; flatten into the keyword param form
+                     (apply concat)
+                     ;; ask bidi to return the Location URI
+                     (apply path-for routes item-resource))}})))
 
 (defn render-item-html
   "Render an item as HTML"

                  (for [k fields] [:td (str (k p))])
                  (when DEBUG [:td (pr-str p)])])]]]))))

;; Now for the Liberator resources. These are heavily commented because
;; Liberator isn't well-known. Check the Liberator website for more
;; info: http://clojure-liberator.github.io/liberator/

;; REST resource for items (plural) - .

        ;; The default is to let Liberator render our data
        items)))

  :post!                   ; enact the 'side-effect' of creating an item
  (fn [{{body :body} :request}]
    {:hecuba/id                  ; add this entry to Liberator's context
     (upsert! commander
              (-> body
                  ;; Prepare to read the body
