pedestal

abdullahibra 2019-11-25T13:37:32.086200Z

Hi everyone,

abdullahibra 2019-11-25T13:37:59.086800Z

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

abdullahibra 2019-11-25T13:38:08.087200Z

both refer to the same route

2019-11-25T14:01:10.087600Z

Hi @abdullahibra, use the linear search router. http://pedestal.io/reference/linear-search-router

abdullahibra 2019-11-25T14:01:55.088Z

@ddeaguiar how performance of it for production use?

2019-11-25T14:04:23.088700Z

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

๐Ÿ‘ 1
abdullahibra 2019-11-25T14:30:10.088900Z

Hey

abdullahibra 2019-11-25T14:30:11.089Z

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

abdullahibra 2019-11-25T14:30:28.089100Z

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

abdullahibra 2019-11-25T14:32:25.089200Z

abdullahibra 2019-11-25T14:32:42.089800Z

i get the user id from `auth interceptor

abdullahibra 2019-11-25T14:34:58.090100Z

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

abdullahibra 2019-11-25T14:37:06.090300Z

seems the problem in `auth

abdullahibra 2019-11-25T14:40:31.090600Z

figured it out