 
 
 
+

    [storemi.session :as sess]
    [storemi.models.story :as st]
    [storemi.urlfor :as url]
    [storemi.routes.policies :refer
     [enforce-story
      enforce-user

  (routes
    (POST url/story-create-path request
         (submit-story request))

    (GET url/story-create-path request
         (page/story-create request))

    (POST url/story-edit-path _
         (wrap-parse-script resubmit-story))

    (GET url/story-edit-path request
         (coerce enforce-user-owned-story page/story-edit))

