This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-11-25
Channels
- # aleph (2)
- # announcements (7)
- # babashka (6)
- # beginners (53)
- # calva (17)
- # cider (5)
- # clj-kondo (137)
- # cljs-dev (19)
- # cljsrn (14)
- # clojure (74)
- # clojure-conj (9)
- # clojure-europe (13)
- # clojure-houston (1)
- # clojure-italy (16)
- # clojure-nl (21)
- # clojure-spec (3)
- # clojure-uk (9)
- # clojuredesign-podcast (24)
- # clojurescript (85)
- # cursive (11)
- # datomic (28)
- # duct (3)
- # emacs (6)
- # figwheel-main (1)
- # fulcro (68)
- # graalvm (19)
- # graphql (3)
- # joker (32)
- # kaocha (10)
- # lambdaisland (1)
- # malli (50)
- # off-topic (13)
- # other-languages (7)
- # pathom (2)
- # pedestal (14)
- # re-frame (53)
- # reitit (8)
- # shadow-cljs (57)
- # specter (2)
Hi everyone,
how can i create two different routes /users/:user-id :get and /users :get ?
both refer to the same route
Hi @abdullahibra, use the linear search router. http://pedestal.io/reference/linear-search-router
@ddeaguiar how performance of it for production use?
See http://pedestal.io/reference/using-the-builtin-routers for it’s performance characteristics. Depends on the number of routes you have
{:type clojure.lang.ExceptionInfo :message You're trying to use something as an interceptor that isn't supported by the protocol; Perhaps you need to extend it? :data {:t nil, :type nil} :at [io.pedestal.interceptor$interceptor invokeStatic interceptor.clj 82]}]
i see this is very helpful, can anybody help me to get what's wrong with my routes ?
i get the user id from `auth interceptor
if i remove :get and :put routes it's working
seems the problem in `auth
figured it out