removed route handler from public folder and added in routes folder.