From 1bea16be979d960ea306c0d8a0ce4272dbbc033c Mon Sep 17 00:00:00 2001
From: Jo Sama <jo.sama@usit.uio.no>
Date: Wed, 13 Oct 2021 16:47:21 +0200
Subject: [PATCH] Disable documentation URLs

No need in exposing the documentation URLs. As this service might be
available from wherever, a bit obscurity is OK.
---
 document_dealer/main.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/document_dealer/main.py b/document_dealer/main.py
index 5ea49b9..1ddff97 100644
--- a/document_dealer/main.py
+++ b/document_dealer/main.py
@@ -6,7 +6,7 @@ import fastapi
 from .document_client import DocumentClient
 from .config import get_config
 
-app = fastapi.FastAPI()
+app = fastapi.FastAPI(docs_url=None, redoc_url=None)
 
 config = get_config()
 
-- 
GitLab