update code

1. update $resource related code of front end.
2. update server side code, invoke route and requestHandler module.