betetr readme
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
#! /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)
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
[Unit]
|
||||
Description=Password ASPI Service
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
Restart=always
|
||||
ExecStart=/usr/bin/env python /opt/password.py
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
||||
Reference in New Issue
Block a user