Builds a braque route file from a swagger.js resource.