diff options
author | Frederick Muriuki Muriithi | 2024-06-10 12:33:05 -0500 |
---|---|---|
committer | Alexander_Kabui | 2024-08-28 15:02:45 +0300 |
commit | a4d148887f8618f4b21748d32c17109dcff95404 (patch) | |
tree | d92ada23e7cf00ac5f07d59ded402e743b7b6385 /gn2 | |
parent | 53ab737c158fe1a8e87ee80d5b7fc6983c901115 (diff) | |
download | genenetwork2-a4d148887f8618f4b21748d32c17109dcff95404.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(): |