firebase endpoint for pages fix