express app should be configured before its get/post methods are defined (logger and bodyparser were not functionning