Updated nginx.conf rewrite rule to accept /api path