Use /api as a suffix instead of prefix for API mode