This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-12-19
Channels
- # adventofcode (36)
- # asami (3)
- # babashka (22)
- # beginners (65)
- # calva (5)
- # clj-kondo (1)
- # cljs-dev (3)
- # clojure-europe (1)
- # clojurescript (3)
- # conjure (1)
- # core-async (6)
- # datomic (3)
- # emacs (4)
- # introduce-yourself (3)
- # juxt (11)
- # lsp (64)
- # malli (10)
- # missionary (11)
- # music (1)
- # off-topic (2)
- # pathom (1)
- # practicalli (1)
- # reagent (6)
- # reitit (3)
- # releases (3)
- # xtdb (9)
If I do this:
(require '[reitit.core :refer [match-by-path]]
'[ring.middleware.params :refer [wrap-params]]
'[reitit.ring.middleware.parameters :as rrmp])
(match-by-path
(-> [["/api/ping" ::ping]
["/api/orders/:id" ::order-by-id]]
(router {:data {:middleware [rrmp/parameters-middleware
#_{:name :query
:wrap wrap-params}]}}))
"/api/ping?sort=ASC&page=2")
;;=> nil
with both wrap-params from ring or with the parameters middleware from reitit.ring.middleware
it works with ["/api/:ping" ::ping]