open:superlifter-middleware

superlifter-middleware

(defn superlifter-middleware [context]
  (fn [handler]
    (fn [req]
      (let [superlifter-context (superlifter/start! (superlifter-args context))
            result (handler (assoc req :superlifter superlifter-context))]
        (superlifter/stop! superlifter-context)
        result))))


  • open/superlifter-middleware.txt
  • 마지막으로 수정됨: 2022/06/15 11:10
  • 저자 127.0.0.1