Fork me on GitHub

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?