Fix trailing slash issue, make /api part of uri.