Handle get/post for root url