diff --git a/src/main/java/ch/admin/bag/covidcode/authcodegeneration/lockdown/LockdownInterceptor.java b/src/main/java/ch/admin/bag/covidcode/authcodegeneration/lockdown/LockdownInterceptor.java index ec7f577..eb5052a 100644 --- a/src/main/java/ch/admin/bag/covidcode/authcodegeneration/lockdown/LockdownInterceptor.java +++ b/src/main/java/ch/admin/bag/covidcode/authcodegeneration/lockdown/LockdownInterceptor.java @@ -30,7 +30,7 @@ public boolean preHandle(HttpServletRequest request, HttpServletResponse respons protected boolean isUriLocked(LocalDateTime now, String requestUri, List endpoints) { String uri = removeTrailingLeading(requestUri, '/'); - log.debug("called uri '{}' intercepted by #{}", uri, this.hashCode()); + log.debug("intercepting call to uri '{}'", uri); Optional result = endpoints.stream() // check for restrictions on given url diff --git a/src/main/resources/application-lockdown.yml b/src/main/resources/application-lockdown.yml index 6c1494f..45ab22e 100644 --- a/src/main/resources/application-lockdown.yml +++ b/src/main/resources/application-lockdown.yml @@ -8,3 +8,19 @@ lockdown: until: 2020-03-23T23:59:59.000Z - from: 2022-04-01T00:00:00.000Z + - + uri: v1/onset + applicable: + - + from: 2022-03-22T00:00:00.000Z + until: 2020-03-23T23:59:59.000Z + - + from: 2022-04-01T00:00:00.000Z + - + uri: v2/onset + applicable: + - + from: 2022-03-22T00:00:00.000Z + until: 2020-03-23T23:59:59.000Z + - + from: 2022-04-01T00:00:00.000Z