mirror of
https://github.com/not-kennethreitz/morepython.org.git
synced 2026-06-05 23:10:18 +00:00
changes
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
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()
|
||||
Reference in New Issue
Block a user