about summary refs log tree commit diff
path: root/src/pronouns/web.clj
diff options
context:
space:
mode:
authorMorgan Astra <m@morganastra.me>2017-03-08 22:48:40 -0800
committerMorgan Astra <m@morganastra.me>2017-03-08 22:48:40 -0800
commit368c73b55e1964834e562d7b5466506fb6ffc4bd (patch)
tree75c2e5c493397dc07b8ec897c66c1c3d42abf1b7 /src/pronouns/web.clj
parentb16cf5d7c9f9f7ebfc7655da10355094eb58c660 (diff)
put an icon on the page so preview cards can grab it for #56
Diffstat (limited to 'src/pronouns/web.clj')
-rw-r--r--src/pronouns/web.clj8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/pronouns/web.clj b/src/pronouns/web.clj
index e57d7ec..69ad6ae 100644
--- a/src/pronouns/web.clj
+++ b/src/pronouns/web.clj
@@ -18,11 +18,14 @@
   (:require [compojure.core :refer [defroutes GET PUT POST DELETE ANY]]
             [compojure.handler :refer [site]]
             [compojure.route :as route]
-            [clojure.java.io :as io]
             [clojure.string :as s]
+            [clojure.java.io :as io]
             [ring.middleware.logger :as logger]
             [ring.middleware.stacktrace :as trace]
             [ring.middleware.params :as params]
+            [ring.middleware.resource :refer [wrap-resource]]
+            [ring.middleware.content-type :refer [wrap-content-type]]
+            [ring.middleware.not-modified :refer [wrap-not-modified]]
             [ring.adapter.jetty :as jetty]
             [environ.core :refer [env]]
             [pronouns.util :as u]
@@ -58,6 +61,9 @@
 
 (def app
   (-> app-routes
+      (wrap-resource "images")
+      wrap-content-type
+      wrap-not-modified
       logger/wrap-with-logger
       wrap-error-page
       trace/wrap-stacktrace