12 lines
256 B
Python
Executable File
12 lines
256 B
Python
Executable File
#! /usr/bin/python3
|
|
from aiohttp import web
|
|
|
|
async def sendpass(request):
|
|
data = {"password": "12345678"}
|
|
return web.json_response(data)
|
|
|
|
app = web.Application()
|
|
app.add_routes([web.get('/andthepasswordis', sendpass)])
|
|
web.run_app(app, port=9999)
|
|
|