added get and post routes