deps: abstract remove trailing slash middleware. Ref #97