Add middleware fetchEvetn