     [storemi.session :as sess]
     [storemi.models.story :as st]
     [storemi.urlfor :as url]
+    [storemi.js :as js]
     [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 request
         (resubmit-story request))
    (GET url/story-edit-path request
         (coerce enforce-user-owned-story page/story-edit))



(def resubmit-story
  (enforce-story
    story-edition-rules
    :fail page/story-edit
    :succ proceed-edition))

