try to add router for resources.
now support resources in router.