Modularizes routes and post requests, organize directory