Fork me on GitHub
#yada
<
2016-01-25
>
nha09:01:40

Is there an equivalent to compojure.route.resources in yada ?

jethroksy09:01:45

(def sf-resource
  (new-directory-resource
   (io/file (io/resource "public"))
   {}))

jethroksy09:01:04

you'll need to refer new-directory-resource

jethroksy09:01:11

[yada.resources.file-resource :refer [new-directory-resource]]

nha10:01:32

Thanks I will try that simple_smile

imre18:01:47

@malcolmsparks: why has :header support been removed from :parameters? I'm trying to upgrade and it's giving me trouble

malcolmsparks18:01:59

@imre sorry. No reason really.

malcolmsparks18:01:29

Are you willing to fork and fix?

malcolmsparks18:01:04

Happy to accept a PR. It should be fine without coercions.

malcolmsparks18:01:31

Hang on just looking now

imre18:01:44

@malcolmsparks I'll try and send a pr tomorrow morning

malcolmsparks19:01:37

I've just done a quick implementation

malcolmsparks19:01:50

Needs more tests but worth trying now

malcolmsparks19:01:57

1.1.0-20160125.190302-12

malcolmsparks19:01:43

let me know how you get on - if you run into any problems feel free to fix and send on a PR

malcolmsparks19:01:55

there's no coercions I think here, just Strings

imre19:01:52

Thanks, that was quick! I'll try it as soon as I can and let you know - coercions shouldn't be a problem