mirror of
https://github.com/sstent/foodplanner.git
synced 2026-04-05 12:35:12 +00:00
added alembic database migrations, json import/export
This commit is contained in:
@@ -56,7 +56,7 @@ job "foodplanner" {
|
|||||||
# Mount the SQLite database file to persist data
|
# Mount the SQLite database file to persist data
|
||||||
# Adjust the source path as needed for your environment
|
# Adjust the source path as needed for your environment
|
||||||
volumes = [
|
volumes = [
|
||||||
"/alloc/tmp/:/data/"
|
"/alloc/tmp/:/data/",
|
||||||
"/mnt/Public/configs/FoodPlanner_backups:/backups",
|
"/mnt/Public/configs/FoodPlanner_backups:/backups",
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
1
main.py
1
main.py
@@ -412,6 +412,7 @@ async def root(request: Request):
|
|||||||
# Admin Section
|
# Admin Section
|
||||||
@app.get("/admin", response_class=HTMLResponse)
|
@app.get("/admin", response_class=HTMLResponse)
|
||||||
async def admin_page(request: Request):
|
async def admin_page(request: Request):
|
||||||
|
print("DEBUG: /admin route accessed")
|
||||||
return templates.TemplateResponse("admin/index.html", {"request": request})
|
return templates.TemplateResponse("admin/index.html", {"request": request})
|
||||||
|
|
||||||
@app.get("/admin/imports", response_class=HTMLResponse)
|
@app.get("/admin/imports", response_class=HTMLResponse)
|
||||||
|
|||||||
Reference in New Issue
Block a user