made changes in express to handle all methods