add support for GUC proxy, move safeTraverse to ythdd_globals

This commit is contained in:
2025-02-28 00:56:13 +01:00
parent 019e47edd9
commit d1b9f90e7e
5 changed files with 27 additions and 12 deletions

View File

@@ -62,6 +62,7 @@ def setup():
app.add_url_rule('/api/<path:received_request>', view_func=ythdd_api.api_global_catchall)
app.add_url_rule('/vi/<path:received_request>', view_func=views.thumbnailProxy)
app.add_url_rule('/ggpht/<path:received_request>', view_func=views.ggphtProxy)
app.add_url_rule('/guc/<path:received_request>', view_func=views.gucProxy)
db = ythdd_db.initDB(app, config)
with app.app_context():