mirror of
https://github.com/rzmk/learnhouse.git
synced 2025-12-19 04:19:25 +00:00
feat: disable docs for non-dev envs and introduce internal APIs
This commit is contained in:
parent
7faccfd7e6
commit
5f4ec65e4d
4 changed files with 89 additions and 2 deletions
|
|
@ -25,6 +25,8 @@ learnhouse_config: LearnHouseConfig = get_learnhouse_config()
|
|||
app = FastAPI(
|
||||
title=learnhouse_config.site_name,
|
||||
description=learnhouse_config.site_description,
|
||||
docs_url="/docs" if learnhouse_config.general_config.development_mode else None,
|
||||
redoc_url="/redoc" if learnhouse_config.general_config.development_mode else None,
|
||||
version="0.1.0",
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue