Add resource router middleware.
0.4.0