Fork me on GitHub
#pedestal
<
2017-02-01
>
mtnygard02:02:09

@nooga The error is probably coming because those get the same route name assigned to them. Try something like this:

mtnygard02:02:26

#{["/" :get bar :route-name :bar-slash] ["/foo" :get bar :route-name :bar-foo]}

mtnygard02:02:12

#{["/foo" :put bar :route-name :bar-put] ["/foo" :post bar :route-name :bar-post]}

mtnygard02:02:52

(Note that I switched to table route syntax instead of terse. That's just because I can do table routes off the top of my head, but I always have to look up the terse syntax.)

nooga11:02:39

that’s what I though

nooga11:02:24

I just hoped that I can avoid duplicating bar declarations since they should work exactly the same way