Add endpoints for retrieving and setting files.