added routing for api