commit | 9d226ea539986e1639e371c0184cf402cfca0cde | [log] [tgz] |
---|---|---|
author | Greg Stein <gstein@gmail.com> | Thu May 09 19:48:42 2024 -0500 |
committer | Greg Stein <gstein@gmail.com> | Thu May 09 19:48:42 2024 -0500 |
tree | 67353467c092f71929da20cbe5f0d4b32cc82b53 | |
parent | 97b8d0cff713b5487271eb0d75ea16b4f803fb24 [diff] |
Incorporate lint fixes to ldap.py from PR #9
This repository will house the future Quart framework for use within ASF web applications. Nothing much to see here yet...
For more detailed documentation, see the documentation page.
import asfquart import asfquart.auth def my_app(): # Construct the quart service. By default, the oauth gateway is enabled at /oauth. asfquart.construct("my_app_service") @asfquart.APP.route("/") async def homepage(): return "Hello!" @asfquart.APP.route("/secret") @asfquart.auth.require(asfquart.auth.Requirements.committer) async def secret_page(): return "Secret stuff!" asfquart.APP.run(port=8000) if __name__ == "__main__": my_app()