diff options
author | Frederick Muriuki Muriithi | 2024-06-10 12:33:05 -0500 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2024-06-10 12:33:05 -0500 |
commit | 0baa7cf4a5eb4abb3761e868ca48030db604649b (patch) | |
tree | a60dfa63bd843cffcf411141e6f6636357d5f5df /gn2 | |
parent | 624107ecf84158efa0ed8e63b6e6e4f0b07715b2 (diff) | |
download | genenetwork2-0baa7cf4a5eb4abb3761e868ca48030db604649b.tar.gz |
Generalise `render_ur` for the resources pages
Diffstat (limited to 'gn2')
-rw-r--r-- | gn2/wqflask/oauth2/resources.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gn2/wqflask/oauth2/resources.py b/gn2/wqflask/oauth2/resources.py index afba2526..42fdae37 100644 --- a/gn2/wqflask/oauth2/resources.py +++ b/gn2/wqflask/oauth2/resources.py @@ -4,7 +4,7 @@ from flask import ( flash, request, url_for, redirect, Response, Blueprint) from . import client -from .ui import render_ui +from .ui import render_ui as _render_ui from .checks import require_oauth2 from .client import oauth2_get, oauth2_post from .request_utils import ( @@ -12,6 +12,9 @@ from .request_utils import ( resources = Blueprint("resource", __name__) +def render_ui(template, **kwargs): + return _render_ui(template, uipages="resources", **kwargs) + @resources.route("/", methods=["GET"]) @require_oauth2 def user_resources(): |