added api url routing for deal -- closes #16