add tasks api, index routes