define ty and placeOrder routes