promisify routes.getMids() in web interface