removed use Resty\Middleware