Refine the route index logic.
Refine the route index logic.

- All route accept middleware now.
- Handle error in one function.
- Skip the file which does not provide proper functions.

lijunle/depcheck-web,depcheck/depcheck-www,depcheck/depcheck-www,lijunle/depcheck-web