Revert api url pattern to /api/