Update URLs to current API endpoints

Also fix an indentation that created a warning