add support to change api prefix (from the /api default)

I've run into this use case today as my APIs have are not under `/api`

let me know if this could work or if I've missed something :)