fix: db revamp, add relations, annotate the db

also allows for request retrieval, and adds decorator for authed access
This commit is contained in:
2025-05-27 01:28:40 +02:00
parent 00a30695b7
commit 4893715118
5 changed files with 139 additions and 80 deletions

View File

@@ -72,7 +72,7 @@ def setup():
app.add_url_rule('/api/', view_func=lewy_api.api_greeting)
app.add_url_rule('/api/<path:received_request>', view_func=lewy_api.api_global_catchall)
db = lewy_db.initDB(app, config)
db = lewy_globals.setupDb(app, config)
scrape = scraper()
with app.app_context():