"Mount" middleware to a pathname prefix.