Rex.IO Middleware