Fork me on GitHub
#duct
<
2017-12-13
>
myguidingstar16:12:58

how do I add a route with json params decoded automatically? Something like Ring's wrap-json-params middleware

yogidevbear17:12:02

@weavejester I hope you don't mind me asking, but what lead your design decision to use sqlite in duct?

weavejester17:12:58

@yogidevbear Duct can use any SQL database. SQLite just happens to be an easy database for tutorials, since there’s no database server to set up.

yogidevbear17:12:21

I thought that was probably the case

yogidevbear17:12:32

Thanks for the quick response 👍

weavejester17:12:01

@myguidingstar Use the :duct.module.web/api module, or add the :duct.middleware.web/format middleware manually to the :duct.core/handler :middleware vector.

weavejester17:12:30

I intend to add a proper site+api module sometime, but I’ve yet to get around to it.