mirror of
https://github.com/kennethreitz/responder.git
synced 2026-06-05 23:00:17 +00:00
13 lines
178 B
Python
13 lines
178 B
Python
import os
|
|
import responder
|
|
|
|
api = responder.API(enable_hsts=True)
|
|
|
|
|
|
@api.route("/")
|
|
def route(req, resp):
|
|
resp.text = "hello, world!"
|
|
|
|
|
|
api.run(port=int(os.environ["PORT"]))
|