use pure exports define resource, fix #1
Merge branch 'route'