2021-11-23 21:00:25 +00:00
|
|
|
from sanic import Sanic, response
|
|
|
|
|
2021-12-23 22:30:27 +00:00
|
|
|
app = Sanic("Example")
|
2017-05-21 11:14:58 +01:00
|
|
|
|
2017-06-01 19:53:05 +01:00
|
|
|
|
2017-05-21 11:14:58 +01:00
|
|
|
@app.route("/test")
|
|
|
|
async def test(request):
|
|
|
|
return response.text("OK")
|
|
|
|
|
2021-11-23 21:00:25 +00:00
|
|
|
|
|
|
|
if __name__ == "__main__":
|
2022-09-18 15:17:23 +01:00
|
|
|
app.run(unix="./uds_socket")
|