Block custom internal endpoint that should never be called

- Is not spec'd
- Will not be spec'd
- Is 100% internal as per its authors
This commit is contained in:
Max Dor
2019-02-25 14:06:32 +01:00
parent 72a1794cc3
commit 95ee328281
2 changed files with 54 additions and 0 deletions

View File

@@ -21,6 +21,7 @@
package io.kamax.mxisd;
import io.kamax.mxisd.config.MxisdConfig;
import io.kamax.mxisd.http.undertow.handler.InternalInfoHandler;
import io.kamax.mxisd.http.undertow.handler.OptionsHandler;
import io.kamax.mxisd.http.undertow.handler.SaneHandler;
import io.kamax.mxisd.http.undertow.handler.as.v1.AsNotFoundHandler;
@@ -117,6 +118,9 @@ public class HttpMxisd {
.put(AsTransactionHandler.Path, asTxnHandler)
.put("/transactions/{" + AsTransactionHandler.ID + "}", asTxnHandler) // Legacy endpoint
// Banned endpoints
.get(InternalInfoHandler.Path, SaneHandler.around(new InternalInfoHandler()))
).build();
httpSrv.start();