Now I have started to add an image to a site I am building in Pedestal. I always get `Not Found` error for the pic.
I am looking for a small tutorial of add pics to the site. I mean static site. So anything to make `<img src="any_image.jpg">` html work.
(ns main
(:require
[io.pedestal.http.ring-middlewares]
[io.pedestal.http.route :as route]
[io.pedestal.http :as http]
))
(def routes
(route/expand-routes []))
(def service-map
{
::http/resource-path "/public"
::http/routes routes
::http/type :jetty
::http/port 8890
})
(defn start []
(http/start (http/create-server service-map)))
(defonce server (atom nil))
(defn start-dev []
(reset! server
(http/start (http/create-server
(assoc service-map
::http/join? false)))))
(defn stop-dev []
(http/stop @server))
(defn restart []
(stop-dev)
(start-dev))