Fork me on GitHub
#pedestal
<
2019-11-25
>
abdullahibra13:11:59

how can i create two different routes /users/:user-id :get and /users :get ?

abdullahibra13:11:08

both refer to the same route

abdullahibra14:11:55

@ddeaguiar how performance of it for production use?

ddeaguiar14:11:23

See http://pedestal.io/reference/using-the-builtin-routers for it’s performance characteristics. Depends on the number of routes you have

👍 1
abdullahibra14:11:11

{: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]}]

abdullahibra14:11:28

i see this is very helpful, can anybody help me to get what's wrong with my routes ?

abdullahibra14:11:42

i get the user id from `auth interceptor

abdullahibra14:11:58

if i remove :get and :put routes it's working

abdullahibra14:11:06

seems the problem in `auth

abdullahibra14:11:31

figured it out