register middleware as string to not force request to be instantiated too early and thus not having url parameters