Injected base URL to endpoints, and simplified index template.