Superstatic custom routes middleware