Moved routes to controller file.