import aiohttp.web from . import app, CONFIG host = CONFIG['ap']['host'] host = CONFIG['note'] async def default(request): return aiohttp.web.Response( status=200, content_type="text/html", charset="utf-8", text="""
This is an Activity Relay for fediverse instances.
{note}
For Mastodon instances, you may subscribe to this relay with the address: https://{host}/inbox
For Pleroma and other instances, you may subscribe to this relay with the address: https://{host}/actor
To host your own relay, you may download the code at this address: https://git.pleroma.social/pleroma/relay
""".format(host=host)) app.router.add_get('/', default)