Fork me on GitHub
#reitit
<
2022-01-20
>
n2o13:01:46

Hey guys, is there any possibility to define multiple http verbs on the same path? Like this (non-working example):

["/foo"
 {:get get-foo}
 {:post post-foo}]
Can’t find anything about it in the docs. Thanks 🙂

Noah Bogart14:01:54

Put them all in the same map: {:get X :post Y}

n2o14:01:41

Okay thanks. but then parameters and responses (e.g. for swagger) are the same, which is not true in our case. Okay thanks for your help 🙂 Hoped to be able to split it, but then they get unique names and unique description, parameters and responses.

dharrigan15:01:22

Here's a little example of doing this:

n2o15:01:12

great, thank you!