express middleware for ot-discovery