Added API routes to frontend.