re-structure POST and GET routes