added modified route with get and post