Adding simple API routing for task