From 5b10e2b12e1021041fb01f786ccb6ec8543193b6 Mon Sep 17 00:00:00 2001 From: Jonas Kellerer Date: Tue, 19 Dec 2023 15:46:40 +0100 Subject: [PATCH] fix: add info route to endpoints that server aggregated data to allow access --- .../genspectrum/lapis/auth/DataOpennessAuthorizationFilter.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lapis2/src/main/kotlin/org/genspectrum/lapis/auth/DataOpennessAuthorizationFilter.kt b/lapis2/src/main/kotlin/org/genspectrum/lapis/auth/DataOpennessAuthorizationFilter.kt index fa619ff3..2d4de5cf 100644 --- a/lapis2/src/main/kotlin/org/genspectrum/lapis/auth/DataOpennessAuthorizationFilter.kt +++ b/lapis2/src/main/kotlin/org/genspectrum/lapis/auth/DataOpennessAuthorizationFilter.kt @@ -12,6 +12,7 @@ import org.genspectrum.lapis.controller.ACCESS_KEY_PROPERTY import org.genspectrum.lapis.controller.AGGREGATED_ROUTE import org.genspectrum.lapis.controller.AMINO_ACID_INSERTIONS_ROUTE import org.genspectrum.lapis.controller.AMINO_ACID_MUTATIONS_ROUTE +import org.genspectrum.lapis.controller.INFO_ROUTE import org.genspectrum.lapis.controller.LapisErrorResponse import org.genspectrum.lapis.controller.NUCLEOTIDE_INSERTIONS_ROUTE import org.genspectrum.lapis.controller.NUCLEOTIDE_MUTATIONS_ROUTE @@ -103,6 +104,7 @@ private class ProtectedDataAuthorizationFilter( AMINO_ACID_MUTATIONS_ROUTE, NUCLEOTIDE_INSERTIONS_ROUTE, AMINO_ACID_INSERTIONS_ROUTE, + INFO_ROUTE, ).map { "/sample$it" } }