Read only policy support
This commit is contained in:
@ -11,7 +11,7 @@ from app import auth
|
||||
from flask import jsonify
|
||||
from flask_pyoidc.user_session import UserSession
|
||||
|
||||
from hsapi_client import Node, User, Route, PreAuthKey
|
||||
from hsapi_client import Node, User, Route, PreAuthKey, Policy
|
||||
from hsapi_client.preauthkeys import v1ListPreAuthKeyRequest
|
||||
|
||||
|
||||
@ -130,3 +130,11 @@ def routes():
|
||||
return render_template("routes.html",
|
||||
exitNodes=exitNodes,
|
||||
routes=final)
|
||||
|
||||
|
||||
@main_blueprint.route('/policy', methods=['GET'])
|
||||
@auth.authorize_admins('default')
|
||||
def policy():
|
||||
policy = Policy().get()
|
||||
return render_template("policy.html",
|
||||
policy=policy)
|
||||
|
Reference in New Issue
Block a user