res.sendFile absolute path

If I do a

res.sendfile(‘public/index1.html’);
then I get a server console warning
express deprecated res.sendfile: Use res.sendFile instead
but it works fine on the client side.

But when I …