kopia lustrzana https://github.com/snarfed/bridgy-fed
25 wiersze
546 B
Python
25 wiersze
546 B
Python
"""Main WSGI application. Just URL routes to the other modules."""
|
|
import importlib
|
|
|
|
from oauth_dropins.webutil import appengine_info, appengine_config, handlers
|
|
import webapp2
|
|
|
|
|
|
routes = []
|
|
for module in (
|
|
'activitypub',
|
|
'add_webmention',
|
|
'logs',
|
|
'redirect',
|
|
'render',
|
|
'salmon',
|
|
'superfeedr',
|
|
'webfinger',
|
|
'webmention',
|
|
):
|
|
routes += importlib.import_module(module).ROUTES
|
|
|
|
application = handlers.ndb_context_middleware(
|
|
webapp2.WSGIApplication(routes, debug=appengine_info.DEBUG),
|
|
client=appengine_config.ndb_client)
|