Fixed middleware except option

Since the logout() method was renamed to getLogout(), this needs to change too.