if no query is associated with the photos endpoint, return the list of photo names