From ded787547a394ba00f1be0cda5ee255fb9bd5038 Mon Sep 17 00:00:00 2001
From: Ben Busby <contact@benbusby.com>
Date: Tue, 11 Jan 2022 10:50:35 -0700
Subject: [PATCH] Exclude opensearch route from session validation

Fixes #588
---
 app/routes.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/app/routes.py b/app/routes.py
index 164f287..44206d1 100644
--- a/app/routes.py
+++ b/app/routes.py
@@ -119,7 +119,8 @@ def before_request_func():
         # Skip checking for session on any searches that don't
         # require a valid session
         if (not Endpoint.autocomplete.in_path(request.path) and
-                not Endpoint.healthz.in_path(request.path)):
+                not Endpoint.healthz.in_path(request.path) and
+                not Endpoint.opensearch.in_path(request.path)):
             return redirect(url_for(
                 'session_check',
                 session_id=session['uuid'],