added rest api
added cors