add explicit routes for ajax requests

Makes the text editor work on master