added routing for REST API