api url changed to /api/v1
updated notFound logic to send index page for non json requests