modified server to only accept put action, simpler