Fork me on GitHub
#pedestal
<
2021-10-04
>
v3ga17:10:31

What would be a good way to go about handling multiple response formats? I’m working on a sort of CMS so I have a view thats private, meant only for the content creator which works as an SPA… though my public view i’d like to generate server side with hiccup. What’s a good way to think about or deal with this? Should I just create separate /api/ routes meant for the creator or is there a cleaner approach I can take?