Rearranging the routes so that when we hit the commit route, we do not create a file called commit