mirror of
https://github.com/not-kennethreitz/morepython.org.git
synced 2026-06-05 15:00:18 +00:00
11 lines
182 B
Python
11 lines
182 B
Python
import responder
|
|
|
|
api = responder.API()
|
|
|
|
@api.route("/{slug}")
|
|
async def greet_world(req, resp, *, slug):
|
|
resp.text = f"{slug}, world!"
|
|
|
|
if __name__ == '__main__':
|
|
api.run()
|