mirror of
https://github.com/sstent/foodplanner.git
synced 2025-12-06 08:01:47 +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
|
||||
# Adjust the source path as needed for your environment
|
||||
volumes = [
|
||||
"/alloc/tmp/:/data/"
|
||||
"/alloc/tmp/:/data/",
|
||||
"/mnt/Public/configs/FoodPlanner_backups:/backups",
|
||||
]
|
||||
}
|
||||
|
||||
1
main.py
1
main.py
@@ -412,6 +412,7 @@ async def root(request: Request):
|
||||
# Admin Section
|
||||
@app.get("/admin", response_class=HTMLResponse)
|
||||
async def admin_page(request: Request):
|
||||
print("DEBUG: /admin route accessed")
|
||||
return templates.TemplateResponse("admin/index.html", {"request": request})
|
||||
|
||||
@app.get("/admin/imports", response_class=HTMLResponse)
|
||||
|
||||
Reference in New Issue
Block a user