update GET / and POST /trainer