add getDevicePoints api on app.js

add getDevicePoints api on app.js