Moving the calendar route to routes/api.js