Fork me on GitHub
#pedestal
<
2016-03-21
>
oliy21:03:15

@xlevus are you using linear search?

xlevus21:03:25

linear search?

oliy21:03:35

It's a pedestal routing option

xlevus21:03:28

how do I know?

oliy21:03:03

::bootstrap/router :linear-search

oliy21:03:09

is that in your service map?

oliy21:03:20

/*resource needs to eat everything under the api in order to serve the UI (which has many, many resources) but requests to your API endpoints should be tried first, and the easiest way to guarantee that is to use linear search

xlevus21:03:43

nope. it's not. adds

xlevus21:03:31

ahah! pow. right in the kisser.

oliy21:03:25

;; important

xlevus21:03:08

the option in the service map isn't even mentioned in the default pedestal template. Probably would never have found it otherwise.

oliy21:03:52

ok thanks for your feedback, i'll add a comment in the example i think

xlevus21:03:49

I'm assuming it's only needed if you want the swagger-ui?

oliy21:03:03

it's just that /*resources handler

xlevus21:03:38

is there any reason to use or not-use :linear-search if you don't need the UI?

oliy21:03:05

i guess it depends on if you have colliding routes and you want to have an explicit order of preference

oliy21:03:24

e.g.

["/path/:param" {...}
 "/path/:another-param" {...}]

oliy21:03:23

@xlevus i've updated the example and readme as suggested, thanks

xlevus21:03:48

ta for your help. Now I can actually make things \ o /

oliy21:03:37

welcome!