fix route so index.json does not return 404