Create app and add index endpoint