Use API links middleware for all requests

Previously this middleware was only being run when the :collection
parameter was in the url, but for the export routes it is needed so the
image urls are absolute urls rather than just paths.