setting app handler rather than sticking methods onto express