|
@@ -2,9 +2,10 @@ import logging
|
|
|
|
|
|
from os import path
|
|
|
|
|
|
-from flask import Blueprint, render_template
|
|
|
+from flask import Blueprint, jsonify, render_template
|
|
|
|
|
|
from lakesuperior import release
|
|
|
+from lakesuperior.dictionaries import srv_mgd_terms as smt
|
|
|
|
|
|
logger = logging.getLogger(__name__)
|
|
|
|
|
@@ -21,9 +22,11 @@ def index():
|
|
|
return render_template('index.html', release=release)
|
|
|
|
|
|
|
|
|
-@main.route('/debug', methods=['GET'])
|
|
|
-def debug():
|
|
|
- """Debug page."""
|
|
|
- raise RuntimeError()
|
|
|
-
|
|
|
-
|
|
|
+@main.route('/info/ldp_constraints', methods=['GET'])
|
|
|
+def ldp_constraints():
|
|
|
+ """ LDP term constraints. """
|
|
|
+ return jsonify({
|
|
|
+ 'srv_mgd_subjects': [*smt.srv_mgd_subjects],
|
|
|
+ 'srv_mgd_predicates': [*smt.srv_mgd_predicates],
|
|
|
+ 'srv_mgd_types': [*smt.srv_mgd_types],
|
|
|
+ })
|