mirror of
https://github.com/mealie-recipes/mealie.git
synced 2026-02-12 02:43:12 -05:00
* 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
20 lines
495 B
Python
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,
|
|
)
|