Update controller.js

Post methdod and get php example