mirror of
https://github.com/hay-kot/mealie.git
synced 2025-08-22 14:33:33 -07:00
fix debug/about response
This commit is contained in:
parent
87f86d5d7f
commit
e81671821f
4 changed files with 6 additions and 5 deletions
|
@ -17,7 +17,7 @@
|
|||
"download-recipe-json": "Download Recipe JSON",
|
||||
"not-demo": "Not Demo",
|
||||
"production": "Production",
|
||||
"sqlite-file": "SQLite File",
|
||||
"database-url": "Database URL",
|
||||
"version": "Version"
|
||||
},
|
||||
"category": {
|
||||
|
|
|
@ -79,9 +79,9 @@ export default {
|
|||
value: debugInfo.dbType,
|
||||
},
|
||||
{
|
||||
name: this.$t("about.sqlite-file"),
|
||||
name: this.$t("about.database-url"),
|
||||
icon: "mdi-file-cabinet",
|
||||
value: debugInfo.sqliteFile,
|
||||
value: debugInfo.dbUrl,
|
||||
},
|
||||
{
|
||||
name: this.$t("about.default-group"),
|
||||
|
@ -93,5 +93,3 @@ export default {
|
|||
},
|
||||
};
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped></style>
|
||||
|
|
|
@ -18,6 +18,7 @@ async def get_debug_info(current_user=Depends(get_current_user)):
|
|||
demo_status=settings.IS_DEMO,
|
||||
api_port=settings.API_PORT,
|
||||
api_docs=settings.API_DOCS,
|
||||
db_type=settings.DB_ENGINE,
|
||||
db_url=settings.DB_URL,
|
||||
default_group=settings.DEFAULT_GROUP,
|
||||
)
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
from pathlib import Path
|
||||
|
||||
from fastapi_camelcase import CamelModel
|
||||
|
||||
|
||||
|
@ -11,5 +12,6 @@ class AppInfo(CamelModel):
|
|||
class DebugInfo(AppInfo):
|
||||
api_port: int
|
||||
api_docs: bool
|
||||
db_type: str
|
||||
db_url: Path
|
||||
default_group: str
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue