Refactor to use app.paths.public instead of public/ string