Backend for snippet POST, PUT