Skip to content

Commit 6dbbb11

Browse files
Added '/v2' to the disallowed paths list that '/robots.txt' returns; removed some comments.
1 parent 340054d commit 6dbbb11

File tree

3 files changed

+1
-4
lines changed

3 files changed

+1
-4
lines changed

src/main/java/cpath/web/BasicController.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ final void errorResponse(ServiceQuery args,
6161
HttpServletRequest request,
6262
HttpServletResponse response)
6363
{
64-
// TODO: switch to using @RestControllerAdvice and @ExceptionHandler
6564
try {
6665
//log/track using a shorter message
6766
audit(request, args, null, error);

src/main/java/cpath/web/GlobalControllerAdvice.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
import cpath.service.api.OutputFormat;
66
import cpath.service.metadata.Datasource;
77
import cpath.web.args.binding.*;
8-
import org.biopax.paxtools.model.BioPAXElement;
9-
import org.biopax.paxtools.pattern.miner.SIFEnum;
108
import org.biopax.paxtools.pattern.miner.SIFType;
119
import org.biopax.paxtools.query.algorithm.Direction;
1210
import org.biopax.paxtools.query.algorithm.LimitType;
@@ -43,6 +41,5 @@ public void registerCustomEditors(WebDataBinder binder, WebRequest request) {
4341
binder.registerCustomEditor(GraphType.class, new GraphTypeEditor());
4442
binder.registerCustomEditor(LimitType.class, new GraphQueryLimitEditor());
4543
binder.registerCustomEditor(SIFType.class, new SIFTypeEditor()); //also works for the SIFEnum subclass
46-
// binder.registerCustomEditor(SIFEnum.class, new SIFTypeEditor());
4744
}
4845
}

src/main/java/cpath/web/PagesController.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ String robots() {
6969
// deny robots access to logs, web services and data files,
7070
// but allow - to web page resources (css, js, images)
7171
return "User-agent: *\n" +
72+
"Disallow: /v2\n" +
7273
"Disallow: /fetch\n" +
7374
"Disallow: /search\n" +
7475
"Disallow: /graph\n" +

0 commit comments

Comments
 (0)