Seems like a common enough plugin use case that it would be really nice to put it into a plugin helper, something like
define_route :get, '/lattices', 'lattices#index'
define_route :post, '/lattices', 'lattices#create'
Rather than having plugin authors care about rails engines and mounting and whatnot.
If I get back to having some time to work on Discourse, I may do that