Fixed public file serving and endpoint issues