Adds an API endpoint for Diff view