This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-08-20
Channels
- # beginners (110)
- # boot (1)
- # cljs-experience (1)
- # clojure (58)
- # clojure-italy (4)
- # clojure-russia (1)
- # clojure-spec (4)
- # clojurescript (51)
- # cursive (2)
- # datomic (4)
- # devcards (4)
- # dirac (1)
- # figwheel (3)
- # fulcro (46)
- # hoplon (11)
- # om (4)
- # parinfer (7)
- # pedestal (1)
- # re-frame (11)
- # reagent (20)
- # specter (6)
- # unrepl (6)
Morning. I’m comparing routing libraries, bumped into this in my test data. Surely a bad practise, but I believe it should still work. Bug or intentional?
(require '[io.pedestal.http.route.definition.table :as table])
(require '[io.pedestal.http.route.map-tree :as map-tree])
(require '[io.pedestal.http.route.router :as router])
(router/find-route
(map-tree/router
(table/table-routes
[["/:a" :get (constantly "") :route-name ::ping]
["/evil/ping" :get (constantly "") :route-name ::evil-ping]]))
{:path-info "/evil/ping" :request-method :get})
; nil