Skip to content

Commit d084bc7

Browse files
ahornaceVladimir Kotal
authored andcommitted
Add comment to allowed path in localhost filter
1 parent 43a276f commit d084bc7

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/org/opensolaris/opengrok/web/api/v1/filter/LocalhostFilter.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,13 @@ public class LocalhostFilter implements ContainerRequestFilter {
4848

4949
private static final Logger logger = LoggerFactory.getLogger(LocalhostFilter.class);
5050

51+
/**
52+
* Endpoint paths that are exempted from this filter.
53+
* @see SearchController#search(HttpServletRequest, String, String, String, String, String, String,
54+
* java.util.List, int, int)
55+
* @see SuggesterController#getSuggestions(org.opensolaris.opengrok.web.api.v1.suggester.model.SuggesterQueryData)
56+
* @see SuggesterController#getConfig()
57+
*/
5158
private static final Set<String> allowedPaths = new HashSet<>(Arrays.asList(
5259
SearchController.PATH, SuggesterController.PATH, SuggesterController.PATH + "/config"));
5360

0 commit comments

Comments
 (0)