Revert "ticket:3 rename middleware->middlewares"

This reverts commit 1ffb5592d8019af5249ff7c3764243fb0f146f64.