Skip to content

Commit

Permalink
🐛 fix api stats doc in prod being visible
Browse files Browse the repository at this point in the history
  • Loading branch information
FredrikMorstad committed Nov 7, 2023
1 parent e5ea77b commit e839d71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def create_app():
app.include_router(mail.router, prefix="/api/mail", tags=['mail'])
app.include_router(jobs.router, prefix="/api/jobs", tags=['job'])
# only visible in development
app.include_router(stats.router, prefix="/api/stats", tags=['stats'], include_in_schema=app.config!='production')
app.include_router(stats.router, prefix="/api/stats", tags=['stats'], include_in_schema=app.config.ENV!='production')

setup_db(app)
# Set tokens to expire at at "exp"
Expand Down

0 comments on commit e839d71

Please sign in to comment.