add router for index and post