wire up post request in index.js