mirror of
https://github.com/kennethreitz/responder.git
synced 2026-06-05 14:50:19 +00:00
13 lines
196 B
Python
13 lines
196 B
Python
import responder
|
|
|
|
api = responder.API()
|
|
|
|
|
|
@api.route("/{greeting}")
|
|
async def greet_world(req, resp, *, greeting):
|
|
resp.text = f"{greeting}, world!"
|
|
|
|
|
|
if __name__ == "__main__":
|
|
api.run()
|