Files
mealie/mealie/routes/app/app_about.py
Hayden 7866f0f46e Feature/improve localization (#1147)
* use locale to set language header

* rewrite i18n provider and drop dependency

* rename file

* rename CrudMixin to HttpRepo

* refactor: code-cleanup

* add crowdin source

* remove unused translations

* grab translations from dev branch

* add translation support for foods, units, and labels

* remove rich import
2022-04-10 14:07:35 -08:00

20 lines
495 B
Python

from fastapi import APIRouter
from mealie.core.config import APP_VERSION, get_app_settings
from mealie.schema.admin.about import AppInfo
router = APIRouter(prefix="/about")
@router.get("", response_model=AppInfo)
def get_app_info():
"""Get general application information"""
settings = get_app_settings()
return AppInfo(
version=APP_VERSION,
demo_status=settings.IS_DEMO,
production=settings.PRODUCTION,
allow_signup=settings.ALLOW_SIGNUP,
)