add rest api to server.js