master
cynic 3 years ago committed by GitHub
parent 128e190336
commit e0d3673730
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      towers/users.py

@ -1,3 +1,6 @@
# all plugins have two critical components: `hooks`, which is a list of regex matches that identify
# the URL range this plugin catches, and `run`, which is called on match using the framework context
# (i.e. the main class) and a copy of the HTTP request.
hooks = ["http.*:\/\/users.$HOST.*"]
@ -5,4 +8,4 @@ def run(ctx, r):
return {
"content_type": "text/html",
"body": "<h1>all users registered on system</h1>"+("<br>".join(ctx.auth.get_real_users()))
}
}

Loading…
Cancel
Save