adding server side getchans api for the index page