mirror of
https://git.ugnet.gay/CrossTalk/azul.git
synced 2026-05-27 22:59:49 +00:00
12 lines
371 B
Python
12 lines
371 B
Python
import settings
|
|
from aiohttp import web
|
|
|
|
|
|
def register(app: web.Application) -> None:
|
|
# http://myspace.com/html.ng/site=myspace&page=30000001&position=imbut&rand=9879
|
|
app.router.add_get('/html.ng/{tail:.*}', handle_client_advert)
|
|
|
|
|
|
async def handle_client_advert(request: web.Request) -> web.Response:
|
|
return web.HTTPFound(f'http://{settings.AD_HOST}y/ads/banner-sq')
|