Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

refheap.middleware is gone, require Monger session store

  • Loading branch information...
commit 8a1620efdd9995a71abba4d3a5672e3a8f09bdce 1 parent 5835a03
@michaelklishin michaelklishin authored
Showing with 4 additions and 8 deletions.
  1. +4 −8 src/refheap/server.clj
View
12 src/refheap/server.clj
@@ -1,17 +1,13 @@
(ns refheap.server
(:require [refheap.config :refer [config]]
- [refheap.middleware :as middleware]
- [mongo-session.core :refer [mongo-session]]
[noir.server :as server]
- [somnium.congomongo :as mongo]
- [org.bovinegenius.exploding-fish :as uri]
[noir.trailing-slash :refer [wrap-strip-trailing-slash]]
[noir.canonical-host :refer [wrap-canonical-host]]
- [noir.force-ssl :refer [wrap-force-ssl]]))
+ [noir.force-ssl :refer [wrap-force-ssl]]
+ [monger.ring.session-store :refer [monger-store]]))
(defn mongolab-info []
- (when-let [env (System/getenv "MONGOLAB_URI")]
- (uri/uri env)))
+ (System/getenv "MONGOLAB_URI"))
(let [{:keys [path port host user-info]} (mongolab-info)
[user pass] (and user-info (.split user-info ":"))
@@ -38,5 +34,5 @@
(server/add-middleware wrap-force-ssl))
(server/start port {:mode mode
:ns 'refheap
- :session-store (mongo-session :sessions)})))
+ :session-store (monger-store :sessions)})))

0 comments on commit 8a1620e

Please sign in to comment.
Something went wrong with that request. Please try again.