Added /editlog middleware to autorun APIs