Fork me on GitHub
#pedestal
<
2020-04-10
>
Ben Hammond09:04:10

I'm loving the way I can hook a parameterized function into vase.pedestal using (fern/lit vase/respond like

board.v1/moves (fern/lit vase/respond
                  {:name :board.v1/moves
                   :params [board-id]
                   :body (xiangqi.board-api/moves board-id)
                   :doc "the moves that can be made from this board disposition"})
although it did take a bit of time to figure out that was how it worked

👍 4