2023-04-19 00:17:48 +00:00
|
|
|
"""Bridgy Fed user-facing app invoked by gunicorn in app.yaml.
|
2022-11-22 02:43:50 +00:00
|
|
|
|
2023-04-19 00:17:48 +00:00
|
|
|
Import all modules that define views in the app so that their URL routes get
|
|
|
|
|
registered.
|
|
|
|
|
"""
|
|
|
|
|
from flask_app import app
|
2021-07-12 00:55:59 +00:00
|
|
|
|
2023-01-13 03:43:12 +00:00
|
|
|
# import all modules to register their Flask handlers
|
2023-12-03 05:18:22 +00:00
|
|
|
import activitypub, atproto, convert, follow, pages, redirect, ui, webfinger, web
|
2023-05-26 23:07:36 +00:00
|
|
|
|
|
|
|
|
import models
|
|
|
|
|
models.reset_protocol_properties()
|
2025-04-29 01:33:35 +00:00
|
|
|
|
|
|
|
|
# only serve subscribeRepos on atproto.brid.gy (atproto-hub), not on fed.brid.gy, so
|
|
|
|
|
# that relays don't think they're two separate PDSes.
|
|
|
|
|
#
|
|
|
|
|
# must be before flask_app import!
|
|
|
|
|
import arroba.server
|
|
|
|
|
del arroba.server.server._methods['com.atproto.sync.subscribeRepos']
|