Insert graph API routes into primary route handler