This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-02-10
Channels
- # beginners (9)
- # boot (8)
- # calva (9)
- # cider (11)
- # cljs-dev (6)
- # clojure (21)
- # clojure-austin (1)
- # clojure-spec (55)
- # clojure-uk (24)
- # clojurescript (30)
- # cursive (1)
- # datomic (3)
- # defnpodcast (1)
- # emacs (3)
- # figwheel-main (9)
- # fulcro (8)
- # jobs-discuss (3)
- # nrepl (7)
- # pathom (8)
- # pedestal (4)
- # perun (4)
- # planck (79)
- # shadow-cljs (46)
- # sql (5)
- # vim (29)
(defn handler [request]
(if (and (= :get (:request-method request))
(= "/" (:uri request)))
{:status 200
:headers {"Content-Type" "text/html"}
:body "home"}
{:status 404
:headers {"Content-Type" "text/plain"}
:body "Not Found!!!"}))
with
:ring-handler server/handler
Handler works, because I see “Not Found!!!“, but when open localhost:9500 I see normal index.html
from resources. How…? How does it work? How magic work? This handler doesn’t provide index.html
.figwheel-main add additional layer and this handler in fired only when file is not found or something?
on the end my purpose is to develop SPA
with HTML5 routes using accountant
. So I need ring server to return index.html
instead
hmm ok it looks like figwheel-main add additional middleware which on the first place load files if they exist
Do you know where is code in fighweel-main with this middleware (or whatever it is)?