Main: Make openapi export store locally

This runs faster than always making a syscall to check if the env
var is set.

Signed-off-by: kingbri <bdashore3@proton.me>
This commit is contained in:
kingbri
2024-07-08 14:52:17 -04:00
parent ae66e8f9ba
commit 6613e38436
3 changed files with 9 additions and 2 deletions

3
endpoints/utils.py Normal file
View File

@@ -0,0 +1,3 @@
import os
do_export_openapi = os.getenv("EXPORT_OPENAPI", "").lower() in ("true", "1")