[backend] add a view=publishedpath route so that the api no longer needs to guess it