added redirect for /api route