Update routers.py

modified generate route, now is looks more like restful route mode.