cjslep[m]I don't know what a "code block" is but I prefer serving HTML or ActivityStreams data at the same URI just depending on the Accept request header
nightpool[m]@rialtate:matrix.org: the way mastodon does it and the way I've been doing it in my small node test bench is that each route is a function and in each route there's a respond to block/anonymous function for each supported content type
cjslep[m]Then again, this is a low level design choice of go-fed. The library only supports AS objects, defers to the library client code for any other non-AP request